VS2010+OpenCV2.4.3配置:
环境变量path:
D:\openCV2.4.3\opencv\build\x86\vc10\bin
项目-属性-VC++目录:(vs2008中,工具-选项-项目和解决方案-VC++目录,选包含文件和库文件)
包含目录:(vs2008:C/C++ -附加包含文件(目录))
D:\openCV2.4.3-extract\opencv\build\include
D:\openCV2.4.3-extract\opencv\build\include\opencv
D:\openCV2.4.3-extract\opencv\build\include\opencv2
库目录:(vs2008:链接器-常规-附加库目录)
D:\openCV2.4.3-extract\opencv\build\x86\vc10\lib
D:\openCV2.4.3-extract\opencv\build\x86\vc10\staticlib
项目-属性-链接器-输入-附加依赖项:
opencv_contrib243d.lib
opencv_core243d.lib
opencv_features2d243d.lib
opencv_flann243d.lib
opencv_gpu243d.lib
opencv_highgui243d.lib
opencv_imgproc243d.lib
opencv_legacy243d.lib
opencv_ml243d.lib
opencv_objdetect243d.lib
opencv_ts243d.lib
opencv_video243d.lib
opencv_contrib243.lib
opencv_core243.lib
opencv_features2d243.lib
opencv_flann243.lib
opencv_gpu243.lib
opencv_highgui243.lib
opencv_imgproc243.lib
opencv_legacy243d.lib
opencv_ml243.lib
opencv_objdetect243.lib
opencv_ts243.lib
opencv_video243.lib
opencv_calib3d243.lib
opencv_haartraining_engine.lib
opencv_nonfree243.lib
opencv_photo243.lib
opencv_stitching243.lib
opencv_videostab243.lib
opencv_calib3d243d.lib
opencv_haartraining_engined.lib
opencv_nonfree243d.lib
opencv_photo243d.lib
opencv_stitching243d.lib
opencv_videostab243d.lib
视图-属性管理器-user-属性 配置opencv 一次配置-永久使用