1 安装Ceres Solver
官方教程:http://ceres-solver.org/installation.html
参考教程:https://blog.csdn.net/qq_27251141/article/details/86690721
https://www.cnblogs.com/sea-stream/p/9797470.html
1. 安装依赖
# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev libgflags-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
sudo apt-get install libsuitesparse-dev
2. 打开官方教程,点击latest stable release,下载压缩包,准备文件夹ceres-bin,把下载的压缩包提取到ceres-bin文件夹下
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-2.0.0
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.
make install
执行make install报错如下,换成sudo make install后成功,不知道有啥影响