参考:
https://colmap.github.io/install.html
1. 安装依赖
sudo apt-get install \
git \
cmake \
build-essential \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-graph-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
备注:
在Ubuntu16.04/18.4下,CGAL的cmake配置是损坏的,必须安装CGAL的qt5包:
sudo apt-get install libcgal-qt5-dev