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"
posted on 2017-03-20 22:58 codeDog123 阅读(165) 评论(0) 编辑 收藏 举报