opencv那些事

配置开源库什么的全靠人品和经验啊

opencv2.4.4在vs2010中的配置步骤还算简洁

这里为了防止opencv版本的变更所以就不配在整个vs环境里了,只配置单个工程的开发环境。 

1: 右击项目属性在包含目录里面加上

      build/include/opencv build/include/opencv2 build/include三个路径

      在库目录上加上

       build/x86/vc10/lib 假如vs2010是32位的就是x86如果是64位就是x64和操作系统的位数无关

2:在链接器输入中附加依赖项中的活动debug加入

opencv_calib3d244d.lib


opencv_contrib244d.lib


opencv_core244d.lib


opencv_features2d244d.lib


opencv_flann244d.lib


opencv_gpu244d.lib


opencv_highgui244d.lib


opencv_imgproc244d.lib


opencv_legacy244d.lib


opencv_ml244d.lib


opencv_objdetect244d.lib


opencv_ts244d.lib


opencv_video244d.lib 

    在release中的附加依赖项中加入


opencv_calib3d244.lib


opencv_contrib244.lib


opencv_core244.lib


opencv_features2d244.lib


opencv_flann244.lib


opencv_gpu244.lib


opencv_highgui244.lib


opencv_imgproc244.lib


opencv_legacy244.lib


opencv_ml244.lib


opencv_objdetect244.lib


opencv_ts244.lib


opencv_video244.lib


其实就是build/x86/vc10/lib下面的.lib文件的文件名如果有需要可以再增加或删减

这样就搞定了哈哈

你可能感兴趣的:(opencv那些事)