码迷,mamicode.com
首页 > Windows程序 > 详细

win7+vs2010+opencv2.4.6配置

时间:2014-07-22 23:11:33      阅读:493      评论:0      收藏:0      [点我收藏+]

标签:使用   re   c   c++   res   安装   

记录一下配置,省的以后还到处去找;

 

(一) 添加环境变量;
//第一次使用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

win7+vs2010+opencv2.4.6配置,码迷,mamicode.com

win7+vs2010+opencv2.4.6配置

标签:使用   re   c   c++   res   安装   

原文地址:http://www.cnblogs.com/Arsenal2010/p/3700166.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!