Issues with running programs after fresh install

asked 2013-08-22 03:04:02 -0500

Damilola gravatar image

I did a fresh install, and when I do I did a fresh install, and when I do

pkg-config opencv --libs, i get the following rather than -llibopencv_contrib -llibopencv .....

/usr/local/lib/libopencv_contrib.a /usr/local/lib/libopencv_stitching.a /usr/local/lib/libopencv_nonfree.a /usr/local/lib/libopencv_ocl.a /usr/local/lib/libopencv_superres.a /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_videostab.a /usr/local/lib/libopencv_gpu.a /usr/local/lib/libopencv_legacy.a /usr/local/lib/libopencv_ml.a /usr/local/lib/libopencv_objdetect.a /usr/local/lib/libopencv_calib3d.a /usr/local/lib/libopencv_photo.a /usr/local/lib/libopencv_video.a /usr/local/lib/libopencv_features2d.a /usr/local/lib/libopencv_highgui.a /usr/local/share/OpenCV/3rdparty/lib/libIlmImf.a /usr/local/lib/libopencv_flann.a /usr/local/lib/libopencv_imgproc.a /usr/local/lib/libopencv_core.a /usr/lib/i386-linux-gnu/libQtCore.so /usr/lib/i386-linux-gnu/libQtTest.so /usr/lib/i386-linux-gnu/libQtGui.so /usr/lib/i386-linux-gnu/libQtOpenGL.so swscale avformat avutil z ass faac fdk-aac mp3lame opencore-amrnb opencore-amrwb opus ogg theoradec theoraenc vorbis vorbisenc vpx x264 xvidcore SDL asound X11 Xext Xfixes va avcodec dc1394 gstvideo-0.10 gstapp-0.10 glib-2.0 xml2 gthread-2.0 gmodule-2.0 gobject-2.0 gstreamer-0.10 gstbase-0.10 /usr/lib/i386-linux-gnu/libjasper.so /usr/lib/i386-linux-gnu/libtiff.so /usr/lib/i386-linux-gnu/libpng.so /usr/lib/i386-linux-gnu/libjpeg.so /opt/AMDAPP/lib/x86/libOpenCL.so tbb /usr/lib/i386-linux-gnu/libXext.so /usr/lib/i386-linux-gnu/libX11.so /usr/lib/i386-linux-gnu/libICE.so /usr/lib/i386-linux-gnu/libSM.so /usr/lib/i386-linux-gnu/libGL.so /usr/lib/i386-linux-gnu/libGLU.so rt pthread m dl stdc++ /usr/lib/i386-linux-gnu/libz.so

Because of this, when I run application I get errors such as

g++: error: swscale: No such file or directory
g++: error: avformat: No such file or directory
g++: error: avutil: No such file or directory
g++: error: z: No such file or directory
g++: error: ass: No such file or directory
g++: error: faac: No such file or directory
g++: error: fdk-aac: No such file or directory
g++: error: mp3lame: No such file or directory
g++: error: opencore-amrnb: No such file or directory
g++: error: opencore-amrwb: No such file or directory
g++: error: opus: No such file or directory
g++: error: ogg: No such file or directory
g++: error: theoradec: No such file or directory
g++: error: theoraenc: No such file or directory
g++: error: vorbis: No such file or directory
g++: error: vorbisenc: No such file or directory
g++: error: vpx: No such file or directory
g++: error: x264: No such file or directory
edit retag flag offensive close merge delete

Comments

Use cflags, like this: pkg-config --cflags --libs opencv what version did you install? Are the dependencies installed?

j0h gravatar imagej0h ( 2016-09-05 14:49:44 -0500 )edit