怎么在Qt Creator中添加OpenCV库
2016-08-31
展开全部
在你的pro文件里
OPENCV_PATH = C:/opencv/build # 你的opencv folder
INCLUDEPATH += $${OPENCV_PATH}/include \
$${OPENCV_PATH}/include/opencv \
$${OPENCV_PATH}/include/opencv2
CONFIG(release, debug|release) {
LIBS += $${OPENCV_PATH}/x64/vc11/lib/opencv_highgui249.lib \
$${OPENCV_PATH}/x64/vc11/lib/opencv_imgproc249.lib \
$${OPENCV_PATH}/x64/vc11/lib/opencv_core249.lib
# .... 你想用的库 release 版本 /x64, /vc11 对应你的编译器
OPENCV_PATH = C:/opencv/build # 你的opencv folder
INCLUDEPATH += $${OPENCV_PATH}/include \
$${OPENCV_PATH}/include/opencv \
$${OPENCV_PATH}/include/opencv2
CONFIG(release, debug|release) {
LIBS += $${OPENCV_PATH}/x64/vc11/lib/opencv_highgui249.lib \
$${OPENCV_PATH}/x64/vc11/lib/opencv_imgproc249.lib \
$${OPENCV_PATH}/x64/vc11/lib/opencv_core249.lib
# .... 你想用的库 release 版本 /x64, /vc11 对应你的编译器
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询