missing libraries

asked 2015-07-12 00:28:43 -0600

merrittr gravatar image

I try to compile a opencv program I added all the libraries nelom but I dont seem to have them on my libraroes just oneslike /usr/lib/x86_64-linux-gnu/libopencv_highgui.so what do I add to my

gccc++ linker? make all Building target: peopleFinder Invoking: GCC C++ Linker g++ -L/usr/include/opencv -L/usr/lib/x86_64-linux-gnu/ -L/usr/local/lib -o "peopleFinder" ./peopleFinder.o -lopencv_core\ \ opencv_imgproc\ \ opencv_highgui\ \ opencv_ml\ \ opencv_video\ \ opencv_features2d\ \ opencv_calib3d\ \ opencv_objdetect\ \ opencv_contrib\ \ opencv_legacy\ \ opencv_flann /usr/bin/ld: cannot find -lopencv_core opencv_imgproc opencv_highgui opencv_ml opencv_video opencv_features2d opencv_calib3d opencv_objdetect opencv_contrib opencv_legacy opencv_flann collect2: error: ld returned 1 exit status make: * [peopleFinder] Error 1

edit retag flag offensive close merge delete

Comments

it has to be: -lopencv_imgproc -lopencv_highgui ... etc.

also, try to remove the backslashes

berak gravatar imageberak ( 2015-07-12 00:36:10 -0600 )edit