我遵循这个在Windows 7下编译OpenCV for Qt5。
C:\opencv\sources\modules\core\src\directx.cpp:1055:5: error: 'cl_context' was not declared in this scope ^~~~~~~~~~
C:\
cmake_minimum_required(VERSION 3.9)find_package(CUDA 8.0 REQUIRED)这发现了CUDA和OpenCL。但是-它更喜欢我的系统的非NVIDIA OpenCL库,而不是随CUDA安装的库。事实上,比这更糟的是,因为我得到了:
//Path to a file.OpenCL_INCLUDE_DIR:PATH=/usr/local