Published on

Building ceres-solver on Fedora 17


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 :

tar -xzf glog-0.3.2.tar.gz
cd glog-0.3.2
./configure --with-gflags=/usr/
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
cd ceres-solver
mkdir release
cd release
cmake -DGLOG_LIB=/usr/local/lib/ ..
make test

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