2016-08-14 96 views
-3
配置OpenCV的

CMake的是显示这个错误,而与CUDA配置OpenCV的:CMake的错误,而与CUDA

CMake的错误:下列变量在这个项目中使用,但它们被设置为NOTFOUND。 请设置它们或者确保它们在CMake的文件中设置和测试正确:

opencv_dep_CUDA_cufft_LIBRARY 
    linked by target "opencv_core" in directory C:/opencv/sources/modules/core 
    linked by target "opencv_test_core" in directory C:/opencv/sources/modules/core 
    linked by target "opencv_perf_core" in directory C:/opencv/sources/modules/core 
    linked by target "opencv_flann" in directory C:/opencv/sources/modules/flann 
    linked by target "opencv_test_flann" in directory C:/opencv/sources/modules/flann 
    linked by target "opencv_imgproc" in directory C:/opencv/sources/modules/imgproc 
    linked by target "opencv_test_imgproc" in directory C:/opencv/sources/modules/imgproc 
    linked by target "opencv_perf_imgproc" in directory C:/opencv/sources/modules/imgproc 
    linked by target "opencv_highgui" in directory C:/opencv/sources/modules/highgui 
    linked by target "opencv_test_highgui" in directory C:/opencv/sources/modules/highgui 
    linked by target "opencv_perf_highgui" in directory C:/opencv/sources/modules/highgui 
    linked by target "opencv_test_features2d" in directory C:/opencv/sources/modules/features2d 
    linked by target "opencv_features2d" in directory C:/opencv/sources/modules/features2d 
    linked by target "opencv_perf_features2d" in directory C:/opencv/sources/modules/features2d 
    linked by target "opencv_calib3d" in directory C:/opencv/sources/modules/calib3d 
    linked by target "opencv_test_calib3d" in directory C:/opencv/sources/modules/calib3d 
    linked by target "opencv_perf_calib3d" in directory C:/opencv/sources/modules/calib3d 
    linked by target "opencv_test_ml" in directory C:/opencv/sources/modules/ml 
    linked by target "opencv_ml" in directory C:/opencv/sources/modules/ml 
    linked by target "opencv_test_video" in directory C:/opencv/sources/modules/video 
    linked by target "opencv_video" in directory C:/opencv/sources/modules/video 
    linked by target "opencv_perf_video" in directory C:/opencv/sources/modules/video 
    linked by target "opencv_test_legacy" in directory C:/opencv/sources/modules/legacy 
    linked by target "opencv_legacy" in directory C:/opencv/sources/modules/legacy 
    linked by target "opencv_perf_objdetect" in directory C:/opencv/sources/modules/objdetect 
    linked by target "opencv_objdetect" in directory C:/opencv/sources/modules/objdetect 
    linked by target "opencv_test_objdetect" in directory C:/opencv/sources/modules/objdetect 
    linked by target "opencv_perf_photo" in directory C:/opencv/sources/modules/photo 
    linked by target "opencv_photo" in directory C:/opencv/sources/modules/photo 
    linked by target "opencv_test_photo" in directory C:/opencv/sources/modules/photo 
    linked by target "opencv_perf_gpu" in directory C:/opencv/sources/modules/gpu 

无我有OpenCV的otheriwse工作CUDA。

+0

那么,你有没有尝试设置这个变量到路径库的路径? – Drop

+0

@Drop我问它,因为我不知道这是怎么完成的?请帮帮我 –

回答

0

解决方案是选择Visual Studio 11 Win64而不是Visual Stuidio 11作为CMAKE中的生成器。这将导致干净的配置。

0

当CMake提示编译器时选择Visual Studio Win 64版本。 cufft.lib应位于CUDA/vX.x/lib/x64文件夹中。