vs2013配置opencv2

Posted codeDog123

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vs2013配置opencv2相关的知识,希望对你有一定的参考价值。

环境变量添加

E:\opencv\build

打开vs2013

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

添加

E:\opencv\build\include

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

添加:

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

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

debug:

添加:

opencv_ml2411d.lib
opencv_calib3d2411d.lib
opencv_contrib2411d.lib
opencv_core2411d.lib
opencv_features2d2411d.lib
opencv_flann2411d.lib
opencv_gpu2411d.lib
opencv_highgui2411d.lib
opencv_imgproc2411d.lib
opencv_legacy2411d.lib
opencv_objdetect2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_nonfree2411d.lib
opencv_ocl2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_superres2411d.lib
opencv_videostab2411d.lib

release:

opencv_ml2411.lib
opencv_calib3d2411.lib
opencv_contrib2411.lib
opencv_core2411.lib
opencv_features2d2411.lib
opencv_flann2411.lib
opencv_gpu2411.lib
opencv_highgui2411.lib
opencv_imgproc2411.lib
opencv_legacy2411.lib
opencv_objdetect2411.lib
opencv_ts2411.lib
opencv_video2411.lib
opencv_nonfree2411.lib
opencv_ocl2411.lib
opencv_photo2411.lib
opencv_stitching2411.lib
opencv_superres2411.lib
opencv_videostab2411.lib

 注意:

<1>2411是版本一定要和自己的lib库中的名称版本相同

<2>debug比release多了一个d比如"opencv_ml2411d.lib"和"opencv_ml2411.lib"

 

以上是关于vs2013配置opencv2的主要内容,如果未能解决你的问题,请参考以下文章

怎样配置VS2013+Qt5开发环境

怎样在VS2013中安装配置boost

Vs2013和vs2010的配置

caffe windows10 vs2013怎么配置

VS2013利用ajax访问不了json文件——VS2013配置webconfig识别json文件

QT5.8.0与VS2013环境配置