colmap安装
root用户,默认选项,直接莽过去就好。
非root用户参考引用
指定gcc版本
make
报错
unsupported GNU version! gcc versions later than 8 are not supported!
在colmap
的makelists.txt
中指定gcc
与g++
路径。
SET(CMAKE_C_COMPILER “/usr/bin/gcc-7”)
SET(CMAKE_CXX_COMPILER “/usr/bin/g++ -7”)
ps::需要在project
命令之前。
屏蔽anaconda
make -j12
到100%
时报错
make[2]: *** [src/exe/CMakeFiles/colmap_exe.dir/build.make:251: src/exe/colmap] Error 1>
make[1]: *** [CMakeFiles/Makefile2:874: src/exe/CMakeFiles/colmap_exe.dir/all] Error 2
是因为make
会自动找到anaconda
文件夹,将anaconda
文件夹暂时改名(例如1
)之后再make