码迷,mamicode.com
首页 > 其他好文 > 详细

【QT+opencv】环境配置

时间:2015-12-28 13:57:07      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:

在qt msvc2010版软件中使用opencv2.4.9进行库函数配置。仅适用于windows下。
INCLUDEPATH += $$PWD/../../../opencv/build/include/opencv                $$PWD/../../../opencv/build/include/opencv2                $$PWD/../../../opencv/build/include

CONFIG(debug,debug|release) {
LIBS += -L$$PWD/../../../opencv/build/x86/vc10/bin         -lopencv_ml249d         -lopencv_calib3d249d         -lopencv_contrib249d         -lopencv_core249d         -lopencv_features2d249d         -lopencv_flann249d         -lopencv_gpu249d         -lopencv_highgui249d         -lopencv_imgproc249d         -lopencv_legacy249d         -lopencv_objdetect249d         -lopencv_ts249d         -lopencv_video249d         -lopencv_nonfree249d         -lopencv_ocl249d         -lopencv_stitching249d         -lopencv_superres249d         -lopencv_videostab249d
} else {
LIBS += -L$$PWD/../../../opencv/build/x86/vc10/bin         -lopencv_ml249         -lopencv_calib3d249         -lopencv_contrib249         -lopencv_core249         -lopencv_features2d249         -lopencv_flann249         -lopencv_gpu249         -lopencv_highgui249         -lopencv_imgproc249         -lopencv_legacy249         -lopencv_objdetect249         -lopencv_ts249         -lopencv_video249         -lopencv_nonfree249         -lopencv_ocl249         -lopencv_stitching249         -lopencv_superres249         -lopencv_videostab249
}

 

 

【QT+opencv】环境配置

标签:

原文地址:http://www.cnblogs.com/imagezy/p/5082128.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!