Cmake - Compile problem for "Cuda" libraries

asked 2017-12-07 03:57:31 -0600

esconda gravatar image

updated 2017-12-07 04:34:48 -0600

I have developed a program using opencv 3.0 with Visual studio 2013 and nowadays I would like to convert it to Gpu based applications with Cuda.

So, I tried to compile Cmake with Cuda support.But unfortunately it does not accept specified file for Cuda.I have checke the cuda file and libraries which is available in opencv.They are all available in " C:/opencv1/opencv/sources/modules/" direction but Cmake does not see it.

Here is the error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cufft_LIBRARY (ADVANCED)

linked by target "opencv_hal" in directory C:/opencv1/opencv/sources/modules/hal
linked by target "opencv_cudev" in directory C:/opencv1/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory C:/opencv1/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory C:/opencv1/opencv/sources/modules/core
linked by target "opencv_perf_core" in directory C:/opencv1/opencv/sources/modules/core
linked by target "opencv_test_core" in directory C:/opencv1/opencv/sources/modules/core
linked by target "opencv_cudaarithm" in directory C:/opencv1/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory C:/opencv1/opencv/sources/modules/cudaarithm
linked by target "opencv_test_cudaarithm" in directory C:/opencv1/opencv/sources/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory C:/opencv1/opencv/sources/modules/cudaarithm
linked by target "opencv_flann" in directory C:/opencv1/opencv/sources/modules/flann
linked by target "opencv_test_flann" in directory C:/opencv1/opencv/sources/modules/flann
linked by target "opencv_imgproc" in directory C:/opencv1/opencv/sources/modules/imgproc
linked by target "opencv_perf_imgproc" in directory C:/opencv1/opencv/sources/modules/imgproc
linked by target "opencv_test_imgproc" in directory C:/opencv1/opencv/sources/modules/imgproc
linked by target "opencv_ml" in directory C:/opencv1/opencv/sources/modules/ml
linked by target "opencv_test_ml" in directory C:/opencv1/opencv/sources/modules/ml
linked by target "opencv_video" in directory C:/opencv1/opencv/sources/modules/video
linked by target "opencv_perf_video" in directory C:/opencv1/opencv/sources/modules/video
linked by target "opencv_test_video" in directory C:/opencv1/opencv/sources/modules/video

Here is the cuda file in source direction:

image description

As you see , all cuda files are available in "C:/opencv1/opencv/sources/modules/" direction.

Any help will be appreciated.

edit retag flag offensive close merge delete