openCV2.4.10在VS2010中的配置
1. openCV解压目录:
D:\Program Files\opencv
2. 环境变量配置:
path D:\Program Files\opencv\build\x86\vc10\bin;D:\Program Files\opencv\build\x64\vc10\bin
3. 创建工程,打开项目的属性窗口:
4. 项目–>属性–>配置属性–>VC++目录–>可执行文件:
D:\Program Files\opencv\build\x86\vc10
5. 项目–>属性–>配置属性–>VC++目录–>包含目录:
D:\Program Files\opencv\build\include
D:\Program Files\opencv\build\include\opencv
D:\Program Files\opencv\build\include\opencv2
6. 项目–>属性–>配置属性–>VC++目录–>库目录:
D:\Program Files\opencv\build\x86\vc10\lib
7. 项目–>属性–>配置属性–>链接器–>输入–>附加依赖项:
opencv_contrib2410d.lib
opencv_stitching2410d.lib
opencv_videostab2410d.lib
opencv_nonfree2410d.lib
opencv_superres2410d.lib
opencv_gpu2410d.lib
opencv_ocl2410d.lib
opencv_legacy2410d.lib
opencv_calib3d2410d.lib
opencv_ts2410d.lib
opencv_features2d2410d.lib
opencv_objdetect2410d.lib
opencv_highgui2410d.lib
opencv_video2410d.lib
opencv_photo2410d.lib
opencv_imgproc2410d.lib
opencv_flann2410d.lib
opencv_ml2410d.lib
opencv_core2410d.lib
opencv_contrib2410.lib
opencv_stitching2410.lib
opencv_nonfree2410.lib
opencv_superres2410.lib
opencv_videostab2410.lib
opencv_ocl2410.lib
opencv_gpu2410.lib
opencv_legacy2410.lib
opencv_calib3d2410.lib
opencv_ts2410.lib
opencv_features2d2410.lib
opencv_objdetect2410.lib
opencv_highgui2410.lib
opencv_video2410.lib
opencv_photo2410.lib
opencv_imgproc2410.lib
opencv_ml2410.lib
opencv_flann2410.lib
opencv_core2410.lib