OpenCV HelloWorld App Bug


I was following this link to build a helloworld opencv program. But while I was at the final step, after make I got the following errors

[ 50%] Linking CXX executable cv_hello
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
CMakeFiles/cv_hello.dir/build.make:121: recipe for target 'cv_hello' failed
make[2]: *** [cv_hello] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cv_hello.dir/all' failed
make[1]: *** [CMakeFiles/cv_hello.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Everything else was the same as the video.

I’m using a TX1 flashed from a Ubuntu 16.04 following this method.

Anyone with any thoughts?

Thank you!

As mentioned in a few topics, please try with “set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)” in CmakeLists.txt. is a good discussion list for your reference.


Please try new Jetpack3.1.