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





The project is described using cmake lists. So, while preparing makefiles I'm using cmake
– Alexey Antonenko
Jun 30 at 7:27




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.

Popular posts from this blog

Render GeoTiff to on browser with leaflet

How to get chrome logged in user's email id through website

using states in a react-navigation without redux