9、ceres 安裝 Git clone https://github.com/ceres-solver/ceres-solver 安裝依賴: # CMake sudo apt-get install cmake # google-glog + gflags sudo apt-get install libgoogle-glog-dev # BLAS & LAPACK sudo apt-get install libatlas-base-dev # Eigen3 sudo apt-get install libeigen3-dev # SuiteSparse and CXSparse (optional) # - If you want to build Ceres as a *static* library (the default) # you can use the SuiteSparse package in the main Ubuntu package # repository: sudo apt-get install libsuitesparse-dev # - However, if you want to build Ceres as a *shared* library, you must //若是編譯動態庫時 須要安裝 ppa # add the following PPA: sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687 sudo apt-get update sudo apt-get install libsuitesparse-dev 編譯: Cd ceres-solver Mkidr build Cd build cmake .. make -j3 make test # Optionally install Ceres, it can also be exported using CMake which # allows Ceres to be used without requiring installation, see the documentation # for the EXPORT_BUILD_DIR option for more information. //不必定必須安裝才能使用, sudo make install
10、g2o安裝 Git Clone https://github.com/RainerKuemmerle/g2o.git 安裝依賴: Sudo apt-get install cmake libeigen3-dev libsuitesparse-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev 編譯: cd g2o mkdir build cd build cmake make sudo make install