sudo apt-get install cmake build-essential libboost-all-dev libeigen3-dev libsuitesparse-dev libfreeimage-dev libgoogle-glog-dev libgflags-dev libglew-dev qtbase5-dev libqt5opengl5-dev libcgal-dev libmetis-dev ninja-build
sudo apt-get install liblapack-dev libsuitesparse-dev libcxsparse3.1.2 libgflags-dev libgoogle-glog-dev libgtest-dev
# CMake 安装ceres-1.14
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev libgflags-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
sudo apt-get install libsuitesparse-dev
git clone https://github.com/colmap/colmap
cdcolmap
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=86
ninja
sudo ninja install
8. Run COLMAP
colmap -h
colmap gui
标签:get,部署,dev,glog,apt,install,colmap,ubuntu20 From: https://www.cnblogs.com/liuweiweitju/p/18500363
报错:
nvcc fatal : Unsupported gpu architecture 'compute_native'
make[2]: *** [src/thirdparty/SiftGPU/CMakeFiles/colmap_sift_gpu.dir/build.make:212: src/thirdparty/SiftGPU/CMakeFiles/colmap_sift_gpu.dir/ProgramCU.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1380: src/thirdparty/SiftGPU/CMakeFiles/colmap_sift_gpu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
解决:
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=86
ninja
sudo ninja install
colmap gui