关闭

安装opencv的备份

标签: opencv安装问题
55人阅读 评论(0) 收藏 举报
分类:

1.安装好opencv

2.安装好vs2010

(1)最好要在工具栏添加“开始执行(不调试)”(ctrl+f5)

(2)添加opencv

可执行文件目录(以下为本机目录)

D:\opencv\opencv\build\x86\vc10\bin;

引用目录

D:\opencv\opencv\build\include;D:\opencv\opencv\build\include\opencv;D:\opencv\opencv\build\include\opencv2;

库目录

D:\opencv\opencv\build\x86\vc10\lib;

调取文件时要添加“项目->属性页->调试->命令参数”


遇到的问题:

1.出现1>CGALTEST510.obj : error LNK2019: 无法解析的外部符号 "classboost::system::error_category const & __cdeclboost::system::system_category(void)"(?system_category@system@boost@@YAAEBVerror_category@12@XZ),该符号在函数 "void __cdecl boost::system::`dynamicinitializer for 'native_ecat''(void)"(??__Enative_ecat@system@boost@@YAXXZ) 中被引用

右击项目,选择“属性”--“链接器”--“输入”--“附加依赖项”

opencv_calib3d249.lib

opencv_calib3d249d.lib

opencv_contrib249.lib

opencv_contrib249d.lib

opencv_core249.lib

opencv_core249d.lib

opencv_features2d249.lib

opencv_features2d249d.lib

opencv_flann249.lib

opencv_flann249d.lib

opencv_gpu249.lib

opencv_gpu249d.lib

opencv_highgui249.lib

opencv_highgui249d.lib

opencv_imgproc249.lib

opencv_imgproc249d.lib

opencv_legacy249.lib

opencv_legacy249d.lib

opencv_ml249.lib

opencv_ml249d.lib

opencv_nonfree249.lib

opencv_nonfree249d.lib

opencv_objdetect249.lib

opencv_objdetect249d.lib

opencv_ocl249.lib

2.出现“无法启动此程序,因为计算机中丢失opencv_core249.dll”

将opencv的bin文件夹里的全部拷贝到C:\Windows\SysWOW64里面(电脑是64位)



 


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:196次
    • 积分:21
    • 等级:
    • 排名:千里之外
    • 原创:2篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档