ColMap安裝推薦使用Ubuantu系統,儘量不用CentOS系統,安裝編譯比較繁瑣。在參照官網安裝時遇到一些問題,特此記錄一下。
一、安裝依賴
sudo apt-get install \
git \
cmake \
build-essential \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-regex-dev \
libboost-system-dev \
libboost-test-dev \
libeigen3-dev \
libsuitesparse-dev \
libfreeimage-dev \
libgoogle-glog-dev \
libgflags-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev
二、安裝 CGAL Qt5 包
sudo apt-get install libcgal-qt5-dev
三、安裝Ceres Solver
sudo apt-get install libatlas-base-dev libsuitesparse-dev
git clone https://ceres-solver.googlesource.com/ceres-solver cd ceres-solver
git checkout $(git describe --tags) # Checkout the latest release
mkdir build
cd build
cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
make sudo make install
如果上面git的網址如果連接不上,可以連接
git clone https://github.com/ceres-solver/ceres-solver.git
四、安裝colmap
git clone https://github.com/colmap/colmap.git cd colmap git checkout dev mkdir build cd build cmake .. make sudo make install
五、運行ColMap
colmap -h
colmap gui