Ask Your Question

Piyush's profile - activity

2016-04-07 07:20:03 -0500 received badge  Famous Question (source)
2014-12-06 08:09:06 -0500 received badge  Notable Question (source)
2014-04-14 16:42:59 -0500 received badge  Popular Question (source)
2013-01-31 09:00:14 -0500 commented answer Missing Shared library

Thanks Now it's working. Just had to add the following line to .bashrc export LD_LIBRARY_PATH="/usr/local/lib";

2013-01-31 08:58:24 -0500 received badge  Supporter (source)
2013-01-31 04:40:13 -0500 asked a question Missing Shared library

Hello all, I have just installed OpenCV 2.4.3. I ran this following sample program just to test if it is working properly. It compiles successfully but give the following error at run-time

error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such file or directory

Here is the output of the pkg-config --cflags --libs opencv

-I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_ts.so /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so

Thank you