码迷,mamicode.com
首页 > 其他好文 > 详细

VS2010下静态链接OpenCV库的设置

时间:2014-05-08 03:32:58      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:vs2010   opencv   静态链接   

一、Debug模式下的设置:


设置Include Directories和Library Directories:

bubuko.com,布布扣


设置Runtime library,Debug模式下用MTd

bubuko.com,布布扣


设置Additional Dependencies

bubuko.com,布布扣


Debug模式下加入的lib

bubuko.com,布布扣


二、Release模式下的设置

设置Include Directories和Library Directories:

bubuko.com,布布扣



设置Runtime library,Release模式下用MT

bubuko.com,布布扣


设置Additional Dependencies

bubuko.com,布布扣


Release模式下加入的lib

bubuko.com,布布扣


三、Debug和Release模式下,需要的lib文件不同,Debug下多了d字母。

1. Release模式下,需要添加的lib文件:

vfw32.lib
comctl32.lib
zlib.lib
libjasper.lib
libjpeg.lib
libpng.lib
libtiff.lib
IlmImf.lib
opencv_core249.lib
opencv_imgproc249.lib
opencv_highgui249.lib
opencv_ml249.lib
opencv_video249.lib
opencv_features2d249.lib
opencv_calib3d249.lib
opencv_objdetect249.lib
opencv_contrib249.lib
opencv_legacy249.lib
opencv_flann249.lib

2. Debug模式下,需要添加的lib文件:
vfw32.lib
comctl32.lib
zlibd.lib
libjasperd.lib
libjpegd.lib
libpngd.lib
libtiffd.lib
IlmImfd.lib
opencv_core249d.lib
opencv_imgproc249d.lib
opencv_highgui249d.lib
opencv_ml249d.lib
opencv_video249d.lib
opencv_features2d249d.lib
opencv_calib3d249d.lib
opencv_objdetect249d.lib
opencv_contrib249d.lib
opencv_legacy249d.lib
opencv_flann249d.lib

本文出自 “GONE WITH THE WIND” 博客,请务必保留此出处http://h2appy.blog.51cto.com/609721/1408087

VS2010下静态链接OpenCV库的设置,布布扣,bubuko.com

VS2010下静态链接OpenCV库的设置

标签:vs2010   opencv   静态链接   

原文地址:http://h2appy.blog.51cto.com/609721/1408087

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