Dependencies
The Structure from Motion module depends on some open source libraries.
- Eigen 3.2.2 or later. Required
- GLog 0.3.1 or later. Required
- GFlags. Required
- Ceres Solver. Needed by the reconstruction API in order to solve part of the Bundle Adjustment plus the points Intersect. If Ceres Solver is not installed on your system, the reconstruction funcionality will be disabled. Recommended
- Note
- The module is only available for Linux/GNU systems.
Installation
Required Dependencies
In case you are on Ubuntu you can simply install the required dependencies by typing the following command:
1 sudo apt-get install libeigen3-dev libgflags-dev libgoogle-glog-dev
Ceres Solver
Start by installing all the dependencies:
2 sudo apt-get install cmake
4 sudo apt-get install libgoogle-glog-dev
6 sudo apt-get install libatlas-base-dev
8 sudo apt-get install libeigen3-dev
9 # SuiteSparse and CXSparse (optional)
10 # - If you want to build Ceres as a *static* library (the default)
11 # you can use the SuiteSparse package in the main Ubuntu package
13 sudo apt-get install libsuitesparse-dev
14 # - However, if you want to build Ceres as a *shared* library, you must
15 # add the following PPA:
16 sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
18 sudo apt-get install libsuitesparse-dev
We are now ready to build, test, and install Ceres:
1 git clone https://ceres-solver.googlesource.com/ceres-solver
3 mkdir build && cd build