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