VS2008安装opencv2.3.1

1 下载并解压opencv2.3

我解压的路径是: D:\aoto_code\opencv,这个路径和第2步配置紧密相关。

2  VC++目录

2.1 包含文件

  D:\aoto_code\opencv\build\include

  D:\aoto_code\opencv\build\include\opencv

  D:\aoto_code\opencv\build\include\opencv2

 

 

 

 2.2 引用文件

  D:\aoto_code\opencv\build\x86\vc9\bin

  D:\aoto_code\opencv\build\x86\vc9\staticlib

  D:\aoto_code\opencv\build\x86\vc9\lib

  D:\aoto_code\opencv\build\x86\vc9

 

2.3 库文件

  D:\aoto_code\opencv\build\x86\vc9\lib

 

3 根据Release和Debug项目配置项目

属性 链接器 输入 配置依赖项

3.1  release项目

opencv_calib3d231.lib

opencv_contrib231.lib
opencv_core231.lib
opencv_features2d231.lib
opencv_flann231.lib
opencv_gpu231.lib
opencv_highgui231.lib
opencv_imgproc231.lib
opencv_legacy231.lib
opencv_ml231.lib
opencv_objdetect231.lib
opencv_ts231.lib
opencv_video231.lib


3.2 debug项目

opencv_calib3d231d.lib
opencv_contrib231d.lib
opencv_core231d.lib
opencv_features2d231d.lib
opencv_flann231d.lib
opencv_gpu231d.lib
opencv_highgui231d.lib
opencv_imgproc231d.lib
opencv_legacy231d.lib
opencv_ml231d.lib
opencv_objdetect231d.lib
opencv_ts231d.lib
opencv_video231d.lib

 

 

 

 

4 在没有opencv环境的电脑下运行需要添加

opencv_highgui231.dll

opencv_imgproc231.dll

opencv_core231.dll

 

posted @ 2019-09-23 20:30  KwinWei  阅读(361)  评论(0编辑  收藏  举报