OpenCV中文网站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 安装 配置
查看: 725|回复: 1

cmake时opencv报错

[复制链接]
发表于 2018-7-22 17:11:56 | 显示全部楼层 |阅读模式
/usr/include/opencv2/core/mat.hpp:58:13: error: ‘Mat’ has not been declared
inline void Mat::initEmpty()
             ^
/usr/include/opencv2/core/mat.hpp: In function ‘void cv::initEmpty()’:
/usr/include/opencv2/core/mat.hpp:60:5: error: ‘flags’ was not declared in this scope
     flags = MAGIC_VAL;
     ^
/usr/include/opencv2/core/mat.hpp:60:13: error: ‘MAGIC_VAL’ was not declared in this scope
     flags = MAGIC_VAL;
             ^
/usr/include/opencv2/core/mat.hpp:61:5: error: ‘dims’ was not declared in this scope
     dims = rows = cols = 0;
     ^
/usr/include/opencv2/core/mat.hpp:61:12: error: ‘rows’ was not declared in this scope
     dims = rows = cols = 0;
            ^
/usr/include/opencv2/core/mat.hpp:61:19: error: ‘cols’ was not declared in this scope
     dims = rows = cols = 0;
                   ^
/usr/include/opencv2/core/mat.hpp:62:5: error: ‘data’ was not declared in this scope
     data = datastart = dataend = datalimit = 0;
     ^
/usr/include/opencv2/core/mat.hpp:62:12: error: ‘datastart’ was not declared in this scope
     data = datastart = dataend = datalimit = 0;
            ^
/usr/include/opencv2/core/mat.hpp:62:24: error: ‘dataend’ was not declared in this scope
     data = datastart = dataend = datalimit = 0;
                        ^
/usr/include/opencv2/core/mat.hpp:62:34: error: ‘datalimit’ was not declared in this scope
     data = datastart = dataend = datalimit = 0;
                                  ^
/usr/include/opencv2/core/mat.hpp:63:5: error: ‘refcount’ was not declared in this scope
     refcount = 0;
     ^
/usr/include/opencv2/core/mat.hpp:64:5: error: ‘allocator’ was not declared in this scope
     allocator = 0;
...................................................................................................
CMakeFiles/inferLib.dir/build.make:1347: recipe for target 'CMakeFiles/inferLib.dir/util/loadImage.cpp.o' failed
make[2]: *** [CMakeFiles/inferLib.dir/util/loadImage.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/inferLib.dir/all' failed
make[1]: *** [CMakeFiles/inferLib.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
求助啊,这是什么情况啊,我当初安opencv是用

点评

海!外直播 t.cn/RxmJTRS 禁闻视频 t.cn/RxBCc6q 以前上小学的时候,老师总是告诫我们:世界上还有三分之二的受苦人。那时候就信了,等长大了才看到,这些受苦人都在自己身边呢。   发表于 2018-7-30 20:59
回复

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|blog|OpenCV中文网站 ( 粤ICP备13079875号-2

GMT+8, 2019-1-21 17:26 , Processed in 0.048999 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表