Published on

Building ceres-solver on Fedora 17

Authors

Simple first step :

yum install gflags-devel

The Fedora rpm package for 'glog' is older than required (i.e. it is <3.1), so it has to be built manually. So, as a precursor to the main build, one requires :

wget http://google-glog.googlecode.com/files/glog-0.3.2.tar.gz
tar -xzf glog-0.3.2.tar.gz
cd glog-0.3.2
./configure --with-gflags=/usr/
make
sudo make install
# This puts it in /usr/local/ by default

Now pull in all the other required packages :

yum install eigen3-devel suitesparse-devel blas-devel lapack-devel protobuf-devel

and then follow the instructions in the PDF (or the steps below...) :

git clone https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver
mkdir release
cd release
cmake -DGLOG_LIB=/usr/local/lib/libglog.so ..
make
make test

FWIW, all the tests pass quickly (<0.1sec) apart from "schur_eliminator_test" (60sec) and "system_test" (300sec).