赞
踩
20240303更新
对于系统:linux mint 21.3
sudo apt-get install colmap
比下面这都靠谱
---2023年版----------------
参考https://blog.csdn.net/qq_40164094/article/details/116521149以及 https://blog.csdn.net/X_kh_2001/article/details/82591978 两位大作。
1装下面这一堆
带--是自己需要新安装的
- sudo apt-get install git
-
- sudo apt-get install cmake
-
- sudo apt-get install build-essential
-
- sudo apt-get install libboost-program-options-dev
-
- sudo apt-get install libboost-filesystem-dev
-
- sudo apt-get install libboost-graph-dev
-
- sudo apt-get install libboost-regex-dev
-
- sudo apt-get install libboost-system-dev
-
- sudo apt-get install libboost-test-dev
-
- sudo apt-get install libglew-dev glew-utils ---
-
- sudo apt-get install libeigen3-dev --
-
- sudo apt-get install glibc-doc ---
-
- sudo apt-get install manpages-posix manpages-posix-dev --
-
- sudo apt-get install libsuitesparse-dev ----
-
- sudo apt-get install libfreeimage-dev ---
-
- sudo apt-get install libgoogle-glog-dev --
-
- sudo apt-get install libmetis-dev --
-
-
- sudo apt-get install libgflags-dev
-
- sudo apt-get install libglew-dev ---
-
- sudo apt-get install qtbase5-dev
-
- sudo apt-get install libqt5opengl5-dev
-
- sudo apt-get install libcgal-dev
2先安装 Ceres-Solver
具体细节参考上边两篇
3在装colmap
具体细节参考上边两篇
验证 colmap gui
===============又犯贱重装......补充记录:===========
2先安装 Ceres-Solver
sudo apt-get install libatlas-base-dev libsuitesparse-dev
git clone https://github.com/ceres-solver/ceres-solver
cd ceres-solver
mkdir build
cd build
cmake ..
make
sudo make install
3装colmap
cd colmap
git checkout dev
mkdir build
cd build
cmake ..
make -j12 (我只是用了make)
sudo make install
敢信???报错!!!!
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldTag@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldName@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldReadCount@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldPassCount@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFFieldDataType@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimage.so: undefined reference to `_TIFFDataSize@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
make[2]: *** [src/colmap/exe/CMakeFiles/colmap_main.dir/build.make:294: src/colmap/exe/colmap] Error 1
make[1]: *** [CMakeFiles/Makefile2:668: src/colmap/exe/CMakeFiles/colmap_main.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
-----------------------血的历史教训--------------没解决------------
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。