ORB_SLAM编译环境搭建过程当中遇到的问题
来源:互联网 发布:慕课平台有哪些 知乎 编辑:程序博客网 时间:2024/05/19 22:52
一.
按照一些参考和官方git的搭建过程,然后自己做了对应的环境搭建,但是对ORB_SLAM编译的时候出现了如下问题:
orb-slam System.cc:134:28: error: ‘usleep’ was not declared in this scope~~
添加之后再次编译就OK了:
EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80; ^In file included from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:35:0, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/LoopClosing.h:34, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/LocalMapping.h:26, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/Tracking.h:31, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/System.h:29, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/Examples/Stereo/stereo_euroc.cc:30:/home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/base_binary_edge.h:60:80: warning: ‘Eigen::AlignedBit’ is deprecated [-Wdeprecated-declarations] typedef Eigen::Map<Matrix<double, Dj, Di>, Matrix<double, Dj, Di>::Flags & AlignedBit ? Aligned : Unaligned > HessianBlockTransposedTyp ^In file included from /usr/local/include/eigen3/Eigen/Core:344:0, from /home/tiejiang-tech/ORB_SLAM/Pangolin/include/pangolin/gl/gl.h:39, from /home/tiejiang-tech/ORB_SLAM/Pangolin/include/pangolin/pangolin.h:33, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/MapDrawer.h:27, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/Viewer.h:26, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/Tracking.h:28, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/include/System.h:29, from /home/tiejiang-tech/ORB_SLAM/ORB_SLAM2/Examples/Stereo/stereo_euroc.cc:30:/usr/local/include/eigen3/Eigen/src/Core/util/Constants.h:162:37: note: declared here EIGEN_DEPRECATED const unsigned int AlignedBit = 0x80; ^[100%] Linking CXX executable ../Examples/Stereo/stereo_euroc[100%] Built target stereo_euroc~~~-VirtualBox:~/ORB_SLAM/ORB_SLAM2$
网上其他网友编译时候遇到问题的总结
http://blog.csdn.net/panxiying1993/article/details/61922162?locationNum=12&fps=1
二.
上述问题解决之后还有一个小问题,编译的时候会卡主,即,编译到某个部分的时候虚拟机直接卡住了,原因是我的电脑本来配置不高,而且有事在虚拟机下面跑orb-slam所以导致性能更加不足,这个时候就不能够使用多线程的编译模式了,那就要在build.sh文件里面修改编译方式,将最后一行的make -j 修改为make -l即可,如下所示:
cd Vocabularytar -xf ORBvoc.txt.tar.gzcd ..echo "Configuring and building ORB_SLAM2 ..."mkdir buildcd buildcmake .. -DCMAKE_BUILD_TYPE=Releasemake -l
最后一行之前是make -j ,修改为make -l即可。
阅读全文
0 0
- ORB_SLAM编译环境搭建过程当中遇到的问题
- ORB_SLAM 编译过程详解
- Ubutu搭建ORB_SLAM运行环境
- 搭建android xmpp开发环境过程遇到的问题
- win7搭建javaweb项目环境过程及遇到的问题
- caffe SSD环境搭建过程遇到的问题
- ReactNative开发环境搭建过程及遇到的问题
- 搭建LNMP环境过程及可能遇到的问题
- Spring4+Hibernate5开发环境搭建过程以及遇到的问题
- 搭建mysql编译环境以及遇到的问题
- ubuntu 12.04建立环境编译过程中遇到的问题
- hadoop环境搭建过程及搭建过程遇到的问题及解决的办法
- 搭建环境遇到的问题
- 在eclipse当中搭建NS3开发环境遇见的问题
- ORB_SLAM运行详细过程(ubuntu14.04系统和ROS Indigo环境搭建,配置及测试运行)
- 【环境搭建003】UBUNTU + ECLIPS + ANDROID 嵌入式系统编译环境搭建遇到的稀奇古怪的问题集合
- Cocos2d-JS连载之环境搭建遇到的问题及android打包过程中遇到的问题
- hadoop 搭建过程中遇到的问题
- 矩阵快速幂优化菲波那切数列
- LeetCode(617) Merge Two Binary Trees
- bzoj 2306: [Ctsc2011]幸福路径
- bzoj 2044三维导弹拦截 二分图匹配
- xlistView_header的布局
- ORB_SLAM编译环境搭建过程当中遇到的问题
- 131. Palindrome Partitioning
- leetcode 128. Longest Consecutive Sequence
- Head First设计模式之迭代器模式
- No valid bower.json was found in any branch ...
- Python字符串格式化--format()方法
- 235. Lowest Common Ancestor of a Binary Search Tree
- 数据结构C语言链栈
- 51Nod 1384 全排列(next-permutation)