Fedora 14下qt配置OpenCV库 及qt无法启动终端模拟器’xterm’ 的解决方案:
Fedora 14(Linux)下qt配置OpenCV:
1,gedit /usr/share/qt4/mkspecs/default/qmake.conf
在文件内添加了下面两句:
QMAKE_INCDIR = /usr/include/opencv
QMAKE_LIBS = -lcvaux -lcv -lcxcore -lhighgui -lml
2,在项目文件的.pro文件内添加:
INCLUDEPATH += /usr/include/opencv
LIBS += /usr/lib/libcv.so \
/usr/lib/libcvaux.so \
/usr/lib/libcxcore.so \
/usr/lib/libhighgui.so \
/usr/lib/libml.so
qt无法启动终端模拟器’xterm’ 的解决方案:
yum install xterm