[ros-users] Bug in ROS Ubuntu package libopencv2.3-dev_2.3.1+svn6514+branch23-10

David spamfuerdavid at gmx.de
Sat Mar 31 21:20:55 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencv-2.3.1.pc.patch
Type: text/x-patch
Size: 1079 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20120331/f1abfa70/attachment-0003.bin>


More information about the ros-users mailing list