colmap ubuntu20 部署

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
cd colmap
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=86
ninja
sudo ninja install

8. Run COLMAP

colmap -h
colmap gui









报错:
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



posted @ 2024-10-24 20:03  dsfsadfdgd  阅读(26)  评论(0编辑  收藏  举报