记录一下配置,省的以后还到处去找;
(一) 添加环境变量;
//第一次使用opencv的话需要加环境变量;” %opencv%\build\x86\vc10\bin”和”%opencv%\build\common\tbb\ia32\vc10”注:%opencv% 用D:\opencv2.4替换;
我的opencv是安装在"D:\opencv2.4"目录下的;(二) 配置工程对opencv的依赖;
VC++目录\
1)包含目录
D:\opencv2.4\build\includeD:\opencv2.4\build\include\opencvD:\opencv2.4\build\include\opencv22)库目录
D:\opencv2.4\build\x86\vc10\lib
3)配置链接器\输入
(我的opencv版本为2.4.6)opencv_calib3d246d.libopencv_contrib246d.libopencv_core246d.libopencv_features2d246d.libopencv_flann246d.libopencv_gpu246d.libopencv_highgui246d.libopencv_imgproc246d.libopencv_legacy246d.libopencv_ml246d.libopencv_objdetect246d.libopencv_ts246d.libopencv_video246d.librelease配置(可以先不管,以后再配置)
opencv_calib3d246.libopencv_contrib246.libopencv_core246.libopencv_features2d246.libopencv_flann246.libopencv_gpu246.libopencv_highgui246.libopencv_imgproc246.libopencv_legacy246.libopencv_ml246.libopencv_objdetect246.libopencv_ts246.libopencv_video246.lib