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