记录一下配置,省的以后还到处去找;
(一) 添加环境变量;
//第一次使用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\include
D:\opencv2.4\build\include\opencv
D:\opencv2.4\build\include\opencv2
2)库目录
D:\opencv2.4\build\x86\vc10\lib
3)配置链接器\输入
(我的opencv版本为2.4.6)
opencv_calib3d246d.lib
opencv_contrib246d.lib
opencv_core246d.lib
opencv_features2d246d.lib
opencv_flann246d.lib
opencv_gpu246d.lib
opencv_highgui246d.lib
opencv_imgproc246d.lib
opencv_legacy246d.lib
opencv_ml246d.lib
opencv_objdetect246d.lib
opencv_ts246d.lib
opencv_video246d.lib
release配置(可以先不管,以后再配置)
opencv_calib3d246.lib
opencv_contrib246.lib
opencv_core246.lib
opencv_features2d246.lib
opencv_flann246.lib
opencv_gpu246.lib
opencv_highgui246.lib
opencv_imgproc246.lib
opencv_legacy246.lib
opencv_ml246.lib
opencv_objdetect246.lib
opencv_ts246.lib
opencv_video246.lib