Ask Your Question
1

No rule to make target `/usr/lib/libnvcuvid.so', needed by `lib/libopencv_gpu.so.2.

asked 2014-09-10 03:32:38 -0500

when i compile opencv-2.4.9 with cuda-6.5, the error is out . why? who can tell me ?

edit retag flag offensive close merge delete

Comments

hmm it should actually build just fine. did it yesterday on my system. Can you supply your CMAKE configuration file?

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-10 03:57:10 -0500 )edit

Steve, I am getting the same error. my Cmake is sudo cmake -D WITH_NVCUVID=ON -D BUILD_DOCS=ON -D WITH_XINE=ON -D WITH_CUDA=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D WITH_OPENNI=ON -D BUILD_EXAMPLES=ON -D WITH_OPENCL=ON -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=../modules/opencv_contrib-master/modules/ -D ENABLE_FAST_MATH=1 -D WITH_QT=ON -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D CMAKE_INSTALL_PREFIX=/home/ubuntu/cv ..

I tried make clean and then make again but It keeps failing at that point.

I tried 3.0.0 and 3.0.0rc1 both are giving me same errors make[2]: * No rule to make target /usr/lib/libnvcuvid.so', needed bylib/libopencv_cudacodec.so.3.0.0'.

I tested CUDA samples independent of Opencv and they work fine.

abhiguru gravatar imageabhiguru ( 2015-06-05 10:54:30 -0500 )edit

Actually I have additional details as my build is on AWS instance running Grid GPU will post a seperate question. Hoping you can take a look at it

abhiguru gravatar imageabhiguru ( 2015-06-05 12:53:06 -0500 )edit

You should run cmake-gui in your build folder and make sure that OpenCV find your complete CUDA installation. For now it seems that it doesn't.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-06 08:37:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-11 03:07:17 -0500

Find out where libnvcuvid.so is located and create a softlink to it:

locate libnvcuvid.so

sudo ln -s /path/to/found/libnvcuvid.so /usr/lib/libnvcuvid.so

edit flag offensive delete link more

Comments

Could be a solution :) @Willem-Jan Spoel, how you doing? Remember me?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-11 03:28:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-09-10 03:32:38 -0500

Seen: 2,808 times

Last updated: Sep 10 '14