Obtain error: cannot find -lopencv_dep_cudart while building project on Ubuntu 16
Obtain error: cannot find -lopencv_dep_cudart while building project on Ubuntu 16
While building project on Ubuntu 16 which uses OpenCV I'm obtaining linker error:
/usr/bin/ld: cannot find -lopencv_dep_cudart
1 Answer
1
Solution: set -D CUDA_USE_STATIC_CUDA_RUNTIME=OFF
while running cmake.
I've also tried to add that parameter to CMakeLists.txt but this doesn't always help.
-D CUDA_USE_STATIC_CUDA_RUNTIME=OFF
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
The project is described using cmake lists. So, while preparing makefiles I'm using cmake
– Alexey Antonenko
Jun 30 at 7:27