1. 程式人生 > >qt5.6(msvc2013)+opencv配置

qt5.6(msvc2013)+opencv配置

新建一個工程  開啟.pro檔案

加上

INCLUDEPATH+=D:/software/opencv/build/include/opencv\
D:/software/opencv/build/include/opencv2\
D:/software/opencv/build/include
CONFIG(debug,debug|release){
LIBS+=D:/software/opencv/build/x86/vc12/lib/opencv_ts300d.lib\
D:/software/opencv/build/x86/vc12/lib/opencv_world300d.lib\
}
CONFIG(release,debug|release){
LIBS+=D:/software/opencv/build/x86/vc12/lib/opencv_ts300.lib\
D:/software/opencv/build/x86/vc12/lib/opencv_world300.lib\