COLMAP在Ubuntu18.04下安装

文章目录

  • Colmap在Ubuntu18.04下安装使用
    • 官方文档
    • COLMAP安装
      • 安装依赖
      • 下载源码
      • 编译安装

Colmap在Ubuntu18.04下安装使用


官方文档

  • COLMAP-Document

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安装完成

你可能感兴趣的:(三维重建)