Ubuntu18.04下编译ORB_SLAM3遇到的问题

12 篇文章 2 订阅

参考博文:https://blog.csdn.net/weixin_42203839/article/details/107728106 ORB_SLAM3的编译及运行【完整教程】

1.E: Unable to correct problems, you have held broken packages 类似下图

推荐解决方案:换阿里云镜像源(具体换源方法 百度很多)

其它参考方案:

https://www.cnblogs.com/schips/p/12470790.html        更换源

https://www.cnblogs.com/aaron-agu/p/8862624.html   使用aptitude(貌似不太安全)

https://blog.csdn.net/cnmilan/article/details/38270831 先删除,后安装(太繁琐)

 

2.fatal error: boost/serialization/serialization.hpp: No such file or directory

解决方案:sudo apt install libboost-filesystem-dev

 

3.c++: internal compiler error: Killed (program cc1plus)

推荐解决方案:使用make –j2 或者 make -jn 或者 make(而不是make -j) (建议将n设为cpu逻辑数量)

查看linux 版本: cat /proc/version
cpu逻辑数量:   cat /proc/cpuinfo |grep "processor"|sort -u|wc -l
https://blog.csdn.net/dongfang1984/article/details/53841621 查询cpu信息

参考方案:https://blog.csdn.net/u011897411/article/details/89742008

本渣渣电脑 运行./build.sh  编译24小时未果 果断放弃 查看其内部命令为 make –j 故改之

 

4.dd: failed to open '/swapfile': Text file busy

解决方案:sudo swapoff –a(watch free –m 监控内存变化)

 

5.fatal error: openssl/md5.h: No such file or directory

解决方案:sudo apt install libssl-dev

 

6.Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support

已经安装好了相应的库 重新编译之后还是这个错误 略坑

解决方案:需卸载opencv重新安装

https://blog.csdn.net/amateur_/article/details/79854465  具体卸载方法

https://blog.csdn.net/loveaborn/article/details/7647734   问题参考

阿里镜像源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

  • 5
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大米粥哥哥

感谢认可!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值