一、Debug模式下的设置:
设置Include Directories和Library Directories:
设置Runtime library,Debug模式下用MTd
设置Additional Dependencies
Debug模式下加入的lib
二、Release模式下的设置
设置Include Directories和Library Directories:
设置Runtime library,Release模式下用MT
设置Additional Dependencies
Release模式下加入的lib
三、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
VS2010下静态链接OpenCV库的设置