在qt+opencv2.4.9上走过的弯路

INCLUDEPATH += D:\opencv\build\include\opencv
INCLUDEPATH += D:\opencv\build\include\opencv2
INCLUDEPATH += D:\opencv\build\include

 
LIBS += D:\opencv\build\x64\vc12\lib\opencv_core249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_imgproc249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_highgui249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_ml249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_video249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_features2d249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_calib3d249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_objdetect249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_contrib249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_legacy249d.lib \
        D:\opencv\build\x64\vc12\lib\opencv_flann249d.lib \

 

 

不要问 问就是复制 把文件路径换成自己的 Windows 环境下面的路径配置 一气呵成 附上 环境变量图片

在qt+opencv2.4.9上走过的弯路_第1张图片

注意一点 不要把系统变量的PATH给覆盖了 覆盖了会报错 然后你会找半天懂我意思吧。

万一你覆盖了,一上来就新建了一个,也不要慌,百度一下,把原来的系统变量加回去就行了。

你可能感兴趣的:(弯路篇)