-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FindCuda.cmake should use the libcuda.so stub #6577
Comments
Also, my |
Hi, I had the exact same problem. |
@GBJim try to add the following to your cmake command:
See the doc: |
@fix42 Thanks for the help! |
You can explicitly specify
|
|
OpenCV version: master (64a5126)
Host OS: Linux (Ubuntu 14.04), running inside a Docker container.
When compiling OpenCV master with
-DBUILD_EXAMPLES=ON
on a machine where the CUDA toolkit is installed but no NVIDIA driver is present, the configure step will fail:This is because
libcuda.so
is not found.This problem is in the following macro:
https://github.com/Itseez/opencv/blob/64a5126ff83d576dab72cb67f41a1a1153e0de00/cmake/FindCUDA.cmake#L682-L714
This macro should also look into the stub libraries offered by the CUDA toolkit (
/usr/local/cuda/lib64/stubs/
).When cross-compiling you are already using the stubs folder, but the 32-bit version:
https://github.com/Itseez/opencv/blob/64a5126ff83d576dab72cb67f41a1a1153e0de00/cmake/FindCUDA.cmake#L689
We should do the same but with
lib64/stubs
and then there will be no need of having the CUDA driver installed when simply building OpenCV.Docker was used because there is no CUDA driver when compiling, but the problem should be the same on a machine with the CUDA toolkit installed but with no CUDA driver. This is my Dockerfile:
The text was updated successfully, but these errors were encountered: