新建一个工程 打开.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 \