本人使用的环境:
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
弦上故人来,纸底乱飞红。