ubuntu 18.04安装colmap及使用

COLMAP安装

按照官网文档上面的说明安装即可,如果懒得看官方文档,可以参考下面的步骤:

安装依赖

  1. 通过apt安装的依赖项
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

由于Ubuntu16.04和18.04中,CGAL的cmake配置是损坏的,必须安装CGAL的qt5包:

sudo apt-get install libcgal-qt5-dev

2.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 clone https://github.com/colmap/colmap

编译安装

cd colmap
git checkout dev
mkdir build
cd build
cmake ..
make
sudo make install

到此,colmap安装完成。编译时间比较长
https://blog.csdn.net/Carry_all/article/details/103224043
colmap使用教程
https://www.zhihu.com/zvideo/1303089274150068224

你可能感兴趣的:(笔记,ubuntu)