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

OpenCV2.4.13+VS2013开发环境配置

时间:2017-07-02 10:14:24      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:include   build   ase   新建   pen   pat   alt   vs2013   super   

1、给系统变量配置path:添加:D:\opencv2_4_13\opencv\build\x86\vc12\bin

技术分享

2、給用户变量添加opencv变量,值D:\opencv2_4_13\opencv\build

添加PATH变量(有就不需要添加,但是值需要添加)值D:\opencv2_4_13\opencv\build\x86\vc12\bin

3、新建visual C项目 Win32控制台应用程序

新建 visual C++项目,如下图所示

4、属性管理器:

注意:debug和release都要配置

1、debug:

1)VC++目录->包含目录

添加

D:\opencv2_4_13\opencv\build\include

D:\opencv2_4_13\opencv\build\include\opencv

D:\opencv2_4_13\opencv\build\include\opencv2

技术分享

2)VC++目录->库目录

添加:

D:\opencv2_4_13\opencv\build\x86\vc12\lib

技术分享

3)链接器->输入->附加依赖项

添加:

opencv_ml2413d.lib
opencv_calib3d2413d.lib
opencv_contrib2413d.lib
opencv_core2413d.lib
opencv_features2d2413d.lib
opencv_flann2413d.lib
opencv_gpu2413d.lib
opencv_highgui2413d.lib
opencv_imgproc2413d.lib
opencv_legacy2413d.lib
opencv_objdetect2413d.lib
opencv_ts2413d.lib
opencv_video2413d.lib
opencv_nonfree2413d.lib
opencv_ocl2413d.lib
opencv_photo2413d.lib
opencv_stitching2413d.lib
opencv_superres2413d.lib
opencv_videostab2413d.lib

技术分享

 

2、Release

1)、2)与debug版本一样

3)添加:

opencv_objdetect2413.lib
opencv_ts2413.lib
opencv_video2413.lib
opencv_nonfree2413.lib
opencv_ocl2413.lib
opencv_photo2413.lib
opencv_stitching2413.lib
opencv_superres2413.lib
opencv_videostab2413.lib
opencv_calib3d2413.lib
opencv_contrib2413.lib
opencv_core2413.lib
opencv_features2d2413.lib
opencv_flann2413.lib
opencv_gpu2413.lib
opencv_highgui2413.lib
opencv_imgproc2413.lib
opencv_legacy2413.lib
opencv_ml2413.lib

OpenCV2.4.13+VS2013开发环境配置

标签:include   build   ase   新建   pen   pat   alt   vs2013   super   

原文地址:http://www.cnblogs.com/cxj123/p/7105121.html

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