我正在使用CMake3.7.2来构建opencv 3.2.0。配置过程显示错误如下:
CMake错误:在此项目中使用了以下变量,但它们被设置为NOTFOUND。请设置它们或确保在CMake文件中正确设置和测试它们:
CUDA_cufft_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory C:/opencv-3.2/source/modules/cudev
linked by target "opencv_test_cudev" in directory C:/opencv-3.2/source/modules/cudev/test
linked by target "opencv_core" in directory C:/opencv-3.2/source/modules/core
linked by target "opencv_test_core" in directory C:/opencv-3.2/source/modules/core
linked by target "opencv_perf_core" in directory C:/opencv-3.2/source/modules/core
linked by target "opencv_test_cudaarithm" in directory C:/opencv-3.2/source/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory C:/opencv-3.2/source/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory C:/opencv-3.2/source/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory C:/opencv-3.2/source/modules/cudaarithm
linked by target "opencv_flann" in directory C:/opencv-3.2/source/modules/flann
linked by target "opencv_test_flann" in directory C:/opencv-3.2/source/modules/flann
linked by target "opencv_imgproc" in directory C:/opencv-3.2/source/modules/imgproc
linked by target "opencv_test_imgproc" in directory C:/opencv-3.2/source/modules/imgproc
linked by target "opencv_perf_imgproc" in directory C:/opencv-3.2/source/modules/imgproc
linked by target "opencv_test_ml" in directory C:/opencv-3.2/source/modules/ml
linked by target "opencv_ml" in directory C:/opencv-3.2/source/modules/ml
linked by target "opencv_test_video" in directory C:/opencv-3.2/source/modules/video
linked by target "opencv_video" in directory C:/opencv-3.2/source/modules/video
linked by target "opencv_perf_video" in directory C:/opencv-3.2/source/modules/video
linked by target "opencv_cudabgsegm" in directory C:/opencv-3.2/source/modules/cudabgsegm
linked by target "opencv_test_cudabgsegm" in directory C:/opencv-3.2/source/modules/cudabgsegm
linked by target "opencv_perf_cudabgsegm" in directory C:/opencv-3.2/source/modules/cudabgsegm
linked by target "opencv_cudafilters" in directory C:/opencv-3.2/source/modules/cudafilters
linked by target "opencv_test_cudafilters" in directory C:/opencv-3.2/source/modules/cudafilters
linked by target "opencv_perf_cudafilters" in directory C:/opencv-3.2/source/modules/cudafilters
linked by target "opencv_cudaimgproc" in directory C:/opencv-3.2/source/modules/cudaimgproc
linked by target "opencv_test_cudaimgproc" in directory C:/opencv-3.2/source/modules/cudaimgproc
linked by target "opencv_perf_cudaimgproc" in directory C:/opencv-3.2/source/modules/cudaimgproc
linked by target "opencv_perf_cudawarping" in directory C:/opencv-3.2/source/modules/cudawarping
linked by target "opencv_cudawarping" in directory C:/opencv-3.2/source/modules/cudawarping
linked by target "opencv_test_cudawarping" in directory C:/opencv-3.2/source/modules/cudawarping
linked by target "opencv_imgcodecs" in directory C:/opencv-3.2/source/modules/imgcodecs
linked by target "opencv_test_imgcodecs" in directory C:/opencv-3.2/source/modules/imgcodecs
linked by target "opencv_perf_imgcodecs" in directory C:/opencv-3.2/source/modules/imgcodecs
linked by target "opencv_perf_photo" in directory
..........发布于 2018-01-23 22:41:14
选择vs2015-win64作为编译器确实解决了我的问题。
https://stackoverflow.com/questions/48393969
复制相似问题