Ask Your Question

Revision history [back]

Hi!

Here is a little trick that I used (if anyone knows a "cleaner" way to do this, please let us know):

1- Create a symbolic link to /opt/ros/fuerte/lib/pkgconfig/opencv.pc inside the directory /user/local/lib/pkgconfig.

cd /usr/local/lib/pkgconfig
ln -s /opt/ros/fuerte/lib/pkgconfig/opencv.pc opencv.pc

2- Create the appropriate .pro file for your Qt project

TARGET= MyQtProject
TEMPLATE = APP

SOURCES += main.cpp

CONFIG += link_pkgconfig
PKGCONFIG += opencv

If the file /usr/local/lib/pkgconfig/opencv.pc already exists you can copy ROS's file with another name, for instance: /usr/local/lib/pkgconfig/opencv_fuerte.pc and then use PKGCONFIG += opencv_fuerte