OpenCV HelloWorld App Bug

Hi,

I was following https://www.youtube.com/watch?v=gvmP0WRVUxI 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 https://devtalk.nvidia.com/default/topic/991226/jetson-tx1/how-to-install-jetpcack-on-linux-16-04-/ this method.

Anyone with any thoughts?

Thank you!
SY

As mentioned in a few topics, please try with “set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)” in CmakeLists.txt. https://github.com/opencv/opencv/issues/6542 is a good discussion list for your reference.

Hi,

Please try new Jetpack3.1.