Ask Your Question
1

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

asked Sep 10 '14

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

Preview: (hide)

Comments

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

StevenPuttemans gravatar imageStevenPuttemans (Sep 10 '14)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 (Jun 5 '15)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 (Jun 5 '15)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 (Jun 6 '15)edit

1 answer

Sort by » oldest newest most voted
1

answered Jun 11 '15

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

Preview: (hide)

Comments

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

StevenPuttemans gravatar imageStevenPuttemans (Jun 11 '15)edit

Question Tools

1 follower

Stats

Asked: Sep 10 '14

Seen: 4,058 times

Last updated: Sep 10 '14