此博客为自己备注的笔记,为了方便以后的配置,可能不够那么详细!!!
详细版参考:
在系统环境变量Path后添加:
D:\Softwares\OpenCV\opencv\build\x86\vc12\bin;
D:\Softwares\OpenCV\opencv\build\x64\vc12\bin;
将64位32位都添加上。
工程属性包含路径:
D:\Softwares\OpenCV\opencv\build\include;D:\Softwares\OpenCV\opencv\build\include\opencv;D:\Softwares\OpenCV\opencv\build\include\opencv2;
工程属性库路径:
使用32位编译:D:\Softwares\OpenCV\opencv\build\x86\vc12\lib;D:\Softwares\OpenCV\opencv\build\x86\vc12\staticlib;
使用64位编译:D:\Softwares\OpenCV\opencv\build\x64\vc12\lib;D:\Softwares\OpenCV\opencv\build\x64\vc12\staticlib;
链接器附加依赖项输入:
Debug模式:
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_ml2411d.lib
opencv_nonfree2411d.lib
opencv_objdetect2411d.lib
opencv_ocl2411d.lib
opencv_photo2411d.lib
opencv_stitching2411d.lib
opencv_superres2411d.lib
opencv_ts2411d.lib
opencv_video2411d.lib
opencv_videostab2411d.lib
Release模式:
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_ml2411.lib
opencv_nonfree2411.lib
opencv_objdetect2411.lib
opencv_ocl2411.lib
opencv_photo2411.lib
opencv_stitching2411.lib
opencv_superres2411.lib
opencv_ts2411.lib
opencv_video2411.lib
opencv_videostab2411.lib
去掉安全警告:在预编译中添加_CRT_SECURE_NO_WARNINGS
计算机中丢失msvcp120d.dll或msvcr120d.dll
下载链接:链接:https://pan.baidu.com/s/1nvN3atF 密码:11ak