Linux环境下Qt creator添加OpenCV的配置

本人使用的环境:

OpenCV2.3.1

Ubuntu11.10

Qt最新版本。。忘了具体数字

 

安装步骤在此:

http://blog.sina.com.cn/s/blog_6fe1657d0100xlie.html

 

 

配置命令为:

sudo gedit /usr/share/qt4/mkspecs/default/qmake.conf 

 

我的配置如下:

QMAKE_INCDIR = /usr/local/include/opencv 
QMAKE_LIBS = -lcvaux -lcv -lcxcore -lhighgui -lml

INCLUDEPATH += /usr/local/include/opencv

LIBS += /usr/local/lib/libopencv_core.so \
/usr/local/lib/libopencv_imgproc.so \
/usr/local/lib/libopencv_video.so \
/usr/local/lib/libopencv_highgui.so



 

配置参考:http://mobile.51cto.com/symbian-272011.htm

你可能感兴趣的:(opencv)