欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Qt5.9.4( MSVC2013 64位) + OpenCV3.0环境配置

程序员文章站 2022-05-06 19:14:53
...

两种配置方法:

1、Pro设置

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

LIBS += -LD:\opencv\build\x64\vc12\lib \
     -lopencv_world300d \
     -lopencv_ts300d \
     -lopencv_world300 \
     -lopencv_ts300

2、预处理

#pragma comment(lib, "D:/opencv/build/x64/vc12/lib/opencv_world300d.lib")
#pragma comment(lib, "D:/opencv/build/x64/vc12/lib/opencv_ts300d.lib")
#pragma comment(lib, "D:/opencv/build/x64/vc12/lib/opencv_world300.lib")
#pragma comment(lib, "D:/opencv/build/x64/vc12/lib/opencv_ts300.lib")