cmake cannot find -lopencv_dep_cudart

Firstly I was getting error:
cmake cannot find -lopencv_dep_cudart

then i changed CMakeLists.txt file by this:
set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)

After that I got an error:
ERROR: Unable to open:… /tutorial_videos/PETS09-S!-L1-View.avi

Hi,

This error message is not a bug.
Your application can’t find the required video.

Please recheck the sample.
Thanks.

I have cloned direcly from here: GitHub - rgiduthuri/openvx_tutorial: Khronos OpenVX Tutorial Material
and did all the required steps to run it.

Hi,

It looks like you should download the video via this script.

I think that’s a really problem where it is, and the diff file helped me.
Thanks!!! I think your answer is a better one.

I had this issue when trying to compile a version of DBoW2 and had multiple versions of opencv installed (although im unsure if the number of opencv versions installed had any effect). To fix i specified the version of OpenCV (3.0.0) in find_package() in CMakeLists.txt and it built no problem.

The system does not possess shared object :opencv_dep_cudart, so there is no way that cmake can link to the object.

Trick Solution: make a soft link to a random object in opencv lib directory [ie :ln -s libopencv_ml.so libopencv_dep_cudart.so]