红联Linux门户
Linux帮助

ubuntu16.04 orbslam ./build.sh出错eigen

发布时间:2016-12-24 10:45:33来源:linux网站作者:viavia
错误如下:
/home/a/ORB_SLAM2/src/Optimizer.cc:1244:1: required from here
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32:40: error: static assertion failed: YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST
_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY
#define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
 
解决办法:
其实是版本问题,在这个网站上https://launchpad.net/ubuntu/trusty/amd64/libeigen3-dev/3.2.0-8
ubuntu16.04 orbslam ./build.sh出错eigen
下载.deb文件,放到home下面
然后安装:
sudo dpkg -i libeigen3-dev_3.2.0-8_all.deb
之后再运行
cd ORB_SLAM2
chmod +x build.sh
./build.sh
解决。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/27206.html