Please consider putting this to answer.ros. On 1 April 2012 02:50, David wrote: > Hi list, > > if I do > > g++ -o myprog myprog.cpp `pkg-config --cflags --libs opencv-2.3.1` > > I get > > /usr/bin/ld: cannot find -l/usr/lib/libopencv_contrib.**so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_legacy.**so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_**objdetect.so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_calib3d.**so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_**features2d.so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_video.so.**2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_highgui.**so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_ml.so.2.**3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_imgproc.**so.2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_flann.so.**2.3.1 > /usr/bin/ld: cannot find -l/usr/lib/libopencv_core.so.**2.3.1 > > In my opinion the problem lies in the pkg-config file opencv-2.3.1.pc, > which is fixed by the patch in the attachment. > > Regards, > David > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > > -- *Arkapravo Bhaumik* E-mail : arkapravobhaumik@gmail.com Website : www.mobotica.com Twitter : @abhaumik Facebook : arkapravo@facebook.com Skype : arkapravo