Visual Studio 2010中Opencv 2.4.3版本配置(不编译)

22 篇文章 0 订阅

1.       配置环境变量

在环境变量中需要添加bin路径,具体是在Path中添加:

C:\OpenCV\build\x86\vc10\bin;


2.       添加包含文件

在项目属性中,(属性——配置属性——VC++目录——包含文件)中添加以下路径:

C:\OpenCV\build\include

C:\OpenCV\build\include\opencv

C:\OpenCV\build\include\opencv2


3.       添加库文件

在第2步的同一页面下,(属性——配置属性——VC++目录——库文件)中添加以下路径:C:\OpenCV\build\x86\vc10\lib


4.       配置附加依赖库

在(链接器——输入——附加依赖项)处增加以下依赖库:

4.1 debug

opencv_calib3d243d.lib; opencv_contrib243d.lib; opencv_core243d.lib; opencv_features2d243d.lib; opencv_flann243d.lib; opencv_gpu243d.lib; opencv_haartraining_engined.lib; opencv_highgui243d.lib; opencv_imgproc243d.lib; opencv_legacy243d.lib; opencv_ml243d.lib; opencv_nonfree243d.lib; opencv_objdetect243d.lib; opencv_photo243d.lib; opencv_stitching243d.lib; opencv_ts243d.lib; opencv_video243d.lib; opencv_videostab243d.lib;


4.2 release

opencv_calib3d243.lib; opencv_contrib243.lib; opencv_core243.lib; opencv_features2d243.lib; opencv_flann243.lib; opencv_gpu243.lib; opencv_haartraining_engine.lib; opencv_highgui243.lib; opencv_imgproc243.lib; opencv_legacy243.lib; opencv_ml243.lib; opencv_nonfree243.lib; opencv_objdetect243.lib; opencv_photo243.lib; opencv_stitching243.lib; opencv_ts243.lib; opencv_video243.lib; opencv_videostab243.lib



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值