Skip to content

Conversation

@ndanielsen
Copy link

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

@Obeyed
Copy link

Obeyed commented Mar 28, 2017

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.

@ndanielsen
Copy link
Author

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

Copy link

@Obeyed Obeyed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DCUDA_CUDA_LIBRARY should then be DCMAKE_LIBRARY_PATH

@mightybigcar mightybigcar mentioned this pull request Jun 6, 2017
@mightybigcar
Copy link

mightybigcar commented Jun 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants