Ceres Solver 2.0
ceres solver๋ฅผ ์ค์นํด๋ณด์
Ref. http://ceres-solver.org/installation.html
1. Dependencies
v2.0 Ceres๋ fully C++14-compliant complier๋ฅผ ์๊ตฌ
<=v1.4 Ceres๋ C++11 ์ด๋ฉด ๋จ
- Eigen 3.3 or later
- CMake 3.5 or later
- glog 0.3.1 or later
2. Install all the dependencies
# CMake
sudo apt install cmake
# google-glog + gflags
sudo apt install libgoogle-glog-dev libgflags-dev
# BLAS & LAPACK
sudo apt install libatlas-base-dev
# Eigen3
sudo apt install libeigen3-dev
# SuiteSparse and CXSparse (optional)
sudo apt install libsuitesparse-dev
3. Git clone Ceres Solver
$ cd ~/Downloads
$ mkdir ceres
$ cd ceres
$ git clone https://ceres-solver.googlesource.com/ceres-solver
์ฌ๊ธฐ๊น์ง๋ง ์ค๋ฉด [ceres] - [ceres-solver]๋ก ํด๋ ๊ฒฝ๋ก๊ฐ ์กํ์์ํ ๋ฐ,
์ง์ ๊ฒฝ๋ก๋ก ๋์๊ฐ์ ceres-bin์ ๋ง๋ค์ด ์ค๋ค
$ cd ..
$ mkdir ceres-bin
$ cd ceres-bin
4. Build, Test and Install
$ cmake ../ceres-solver
$ make -j3
$ make test
$ make install
Leave a comment