赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。