当前位置:   article > 正文

linux 安装colmap_linux colmap

linux colmap

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装下面这一堆

带--是自己需要新安装的

  1. sudo apt-get install git
  2. sudo apt-get install cmake
  3. sudo apt-get install build-essential
  4. sudo apt-get install libboost-program-options-dev
  5. sudo apt-get install libboost-filesystem-dev
  6. sudo apt-get install libboost-graph-dev
  7. sudo apt-get install libboost-regex-dev
  8. sudo apt-get install libboost-system-dev
  9. sudo apt-get install libboost-test-dev
  10. sudo apt-get install libglew-dev glew-utils ---
  11. sudo apt-get install libeigen3-dev --
  12. sudo apt-get install glibc-doc ---
  13. sudo apt-get install manpages-posix manpages-posix-dev --
  14. sudo apt-get install libsuitesparse-dev ----
  15. sudo apt-get install libfreeimage-dev ---
  16. sudo apt-get install libgoogle-glog-dev --
  17. sudo apt-get install libmetis-dev --
  18. sudo apt-get install libgflags-dev
  19. sudo apt-get install libglew-dev ---
  20. sudo apt-get install qtbase5-dev
  21. sudo apt-get install libqt5opengl5-dev
  22. 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

-----------------------血的历史教训--------------没解决------------

参考【已解决】libfreeimage.so:对‘TIFFTileRowSize@LIBTIFF_4.0’未定义的引用_/libfreeimage.so: undefined reference to `tifftile-CSDN博客

编译Colmap出错 x86_64-linux-gnu/libfreeimage.so: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4._/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfreeimag-CSDN博客

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号