赞
踩
18.04的系统重装了一遍,各个库都已编译安装成功,在这里进行一下简单备份,以便以后还要重装…
//下载地址:
https://download.csdn.net/download/weixin_46181372/20033998
查看库版本,我的版本为3.3.90:
gedit /usr/include/eigen3/Eigen/src/Core/util/Macros.h //如果 eigen 二进制安装
gedit /usr/local/include/eigen3/Eigen/src/Core/util/Macros.h //如果 eigen 源码安装
cd eigen-git-mirror/
mkdir build
cd build/
cmake ..
make -j8
sudo make install -j8
//下载地址:
https://download.csdn.net/download/weixin_46181372/20034849
//下载地址:
https://download.csdn.net/download/weixin_46181372/20034137
//编译安装:
cd GeographicLib-1.51/
mkdir build
cd build
cmake ..
make -j8
sudo make install -j8
//下载地址:
https://download.csdn.net/download/weixin_46181372/20034248
//编译安装
cd protobuf-3.14.x/
./autogen.sh
./configure
make -j8
make check
sudo make install
sudo ldconfig
protoc --version //检查安装后的版本,系统本身带有的版本过低
//备忘:proto生成.cpp与.h文件
protoc --cpp_out=./ ./msgType.proto
//下载地址:sophus+g2o+ceres
https://download.csdn.net/download/weixin_46181372/20034976
cd Sophus-13fb3288311485dc94e3226b69c9b59cd06ff94e/
mkdir build
cd build/
cmake ..
make -j8
sudo make install -j8
版本查询:
gedit /usr/local/include/ceres/version.h //我的版本为2.0.0
//安装依赖
sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev
cd ceres-solver-master/
mkdir build
cd build/
cmake ..
make -j8
sudo make install -j8
//安装依赖
sudo apt-get install qt5-qmake qt5-default libqglviewer-dev-qt5 libsuitesparse-dev libcxsparse3 libcholmod3
cd g2o-9b41a4ea5ade8e1250b9c1b279f3a9c098811b5a/
mkdir build
cd build/
cmake ..
make -j8
sudo make install -j8
简单进行了一下测试,应该没什么大问题,所以以上安装的各个版本在18.04没什么冲突!
对于我这小白…装系统可太麻烦了…希望不要再有下一次…
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。