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

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

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

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

手工连接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目录,依次执行以下命令,解包,编译

tar zxf ceres-solver-1.14.0.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-1.14.0
make -j3
make test

make install

step 4: Configure and compile COLMAP:

git clone https://github.com/colmap/colmap.git
cd colmap
git checkout dev
mkdir build
cd build
cmake ..
make
sudo make install

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值