OpenCV 2.4.9 配置使用

版本: VS2008+opencv2.4.9 or VS2013+opencv2.4.9, win7 64位


1. 添加头文件目录

 C/C++-->General-->Additional include Directories: C:\opencv\build\include;C:\opencv\build\include\opencv;C:\opencv\build\include\opencv2


2. 添加库文件目录

Linker-->General-->Additional Library Directories: C:\opencv\build\x86\vc12\lib


3. 添加库文件

Linker-->input-->Additional Dependencies: opencv_calib3d249.lib;opencv_contrib249.lib;opencv_core249.lib;opencv_features2d249.lib;

opencv_flann249.lib;opencv_gpu249.lib;opencv_highgui249.lib;opencv_imgproc249.lib;

opencv_legacy249.lib;opencv_ml249.lib;opencv_nonfree249.lib;opencv_objdetect249.lib;

opencv_ocl249.lib;opencv_photo249.lib;opencv_stitching249.lib;opencv_superres249.lib;

opencv_ts249.lib;opencv_video249.lib;opencv_videostab249.lib;%(AdditionalDependencies)

此为release版本库,debug版本在249后面加d

注意VS2008版本,不同库文件之间采用空格




你可能感兴趣的:(开发环境,OpenCV)