dl-docker icon indicating copy to clipboard operation
dl-docker copied to clipboard

CUDA_CUDA_LIBRARY Not Found Fix

Open ndanielsen opened this issue 8 years ago • 3 comments

Received the follow error when building, this fixes it

-- Configuring incomplete, errors occurred! See also "/root/opencv/build/CMakeFiles/CMakeOutput.log". See also "/root/opencv/build/CMakeFiles/CMakeError.log". 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_CUDA_LIBRARY (ADVANCED) linked by target "example_gpu_alpha_comp" in directory /root/opencv/samples/gpu linked by target "example_gpu_bgfg_segm" in directory /root/opencv/samples/gpu linked by target "example_gpu_cascadeclassifier" in directory /root/opencv/samples/gpu linked by target "example_gpu_cascadeclassifier_nvidia_api" in directory /root/opencv/samples/gpu linked by target "example_gpu_driver_api_multi" in directory /root/opencv/samples/gpu linked by target "example_gpu_driver_api_stereo_multi" in directory /root/opencv/samples/gpu linked by target "example_gpu_farneback_optical_flow" in directory /root/opencv/samples/gpu linked by target "example_gpu_generalized_hough" in directory /root/opencv/samples/gpu linked by target "example_gpu_hog" in directory /root/opencv/samples/gpu linked by target "example_gpu_houghlines" in directory /root/opencv/samples/gpu linked by target "example_gpu_morphology" in directory /root/opencv/samples/gpu linked by target "example_gpu_multi" in directory /root/opencv/samples/gpu linked by target "example_gpu_opengl" in directory /root/opencv/samples/gpu linked by target "example_gpu_optical_flow" in directory /root/opencv/samples/gpu linked by target "example_gpu_opticalflow_nvidia_api" in directory /root/opencv/samples/gpu linked by target "example_gpu_pyrlk_optical_flow" in directory /root/opencv/samples/gpu linked by target "example_gpu_stereo_match" in directory /root/opencv/samples/gpu linked by target "example_gpu_stereo_multi" in directory /root/opencv/samples/gpu linked by target "example_gpu_super_resolution" in directory /root/opencv/samples/gpu linked by target "example_gpu_surf_keypoint_matcher" in directory /root/opencv/samples/gpu linked by target "example_gpu_video_reader" in directory /root/opencv/samples/gpu linked by target "example_gpu_video_writer" in directory /root/opencv/samples/gpu

ndanielsen avatar Mar 26 '17 22:03 ndanielsen

I had this same issue. I don't know if it has any effect, but I added the library path instead of the specific file path: -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs, and the build completed without errors.

I don't know which approach is optimal.

Obeyed avatar Mar 28 '17 13:03 Obeyed

@Obeyed agree with you, changed it to the dir location instead of the file

ndanielsen avatar Apr 02 '17 16:04 ndanielsen

I've create a pull request #60 that fixes the issue as recommended by @Obeyed in his comment from last March. Sorry if the additional request causes confusion - I wasn't sure how to attach the change to this one.

mightybigcar avatar Jun 06 '17 22:06 mightybigcar