当前位置:   article > 正文

COLMAP的安装_虚拟机安装colmap

虚拟机安装colmap

VMworkstation环境下Ubuntu16.0.4虚拟机

CUDA为10.1预先装好。虚拟机可以上网。

安装手册按照:https://colmap.github.io/install.html

按照Linux对应的章节执行:

step 1:对照文档。Under Ubuntu 16.04/18.04 the CMake configuration scripts of CGAL are broken and you must also install the CGAL Qt5 package:

于是先执行以下步骤:

sudo apt-get install libcgal-qt5-dev

step 2:安装以下包。

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

step3 : Install Ceres Solver:

 sudo apt-get install libatlas-base-dev libsuitesparse-dev

 git clone https://github.com/ceres-solver/ceres-solver

奇怪的是第一次执行上述命令。竟然报不能创建目录。关闭终端后再次执行正常啦。

  1. cd ceres-solver
  2. git checkout $(git describe --tags) # Checkout the latest release
  3. mkdir build
  4. cd build
  5. cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
  6. make
  7. sudo make install

遗憾的是上步一直都没成功。下载失败。

手工连接http://ceres-solver.org/installation.html#linux

点击latest stable releas 

You can start with the latest stable release . Or if you want the latest version, you can clone the git repository

下载成功:ceres-solver-1.14.0.tar.gz文件,拷贝到/home/cjq目录,依次执行以下命令,解包,编译

  1. tar zxf ceres-solver-1.14.0.tar.gz
  2. mkdir ceres-bin
  3. cd ceres-bin
  4. cmake ../ceres-solver-1.14.0
  5. make -j3
  6. make test
  7. make install

step 4: Configure and compile COLMAP:

  1. git clone https://github.com/colmap/colmap.git
  2. cd colmap
  3. git checkout dev
  4. mkdir build
  5. cd build
  6. cmake ..
  7. make
  8. sudo make install

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/768658
推荐阅读
  

闽ICP备14008679号