建議挑選日期接近的博文來參考,由於不同更新版本的源碼版本遇到的問題不同。步驟都是大概按照官網教程:git
1、安裝MVG
安裝所依賴的庫:github
Engine 3.2:參考 https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/107233049 中安裝Engine 3.2.10的部分segmentfault
opencv 3.2:參考 https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/88756053#t4 中安裝opencv的步驟,注意裏面寫的是安裝opencv3.1,安裝時要仔細對照裏面所說的每一步svg
QT version >= v5.4:參考:https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/103329833測試
這裏只進行了安裝,沒有修改系統默認的QTui
ceres >=1.1:參考:https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/107289419spa
CMake 3.8:.net
CGAL>=4.2:日誌
VCG:參考:https://blog.csdn.net/zdafei2010/article/details/77131563code
這裏,我下載的是 https://github.com/cnr-isti-vclab/vcglib/
GLFW:
Boost>=1.6:
GCC >= 4.8.1:
Clang >= 3.3:
安裝OpenMVS的依賴庫:
sudo apt-get install libpng-dev libjpeg-dev libtiff-dev libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev
若是要查看視圖svg日誌,請安裝Graphviz:
sudo apt-get install graphviz
下載OpenMVG:
git clone --recursive https://github.com/openMVG/openMVG.git
編譯:
cd ~/openMVG mkdir openMVG_Build && cd openMVG_Build cmake -DCMAKE_BUILD_TYPE=RELEASE ../src/ -DOpenMVG_BUILD_TESTS=ON -DOpenMVG_BUILD_EXAMPLES=ON sudo cmake --build . --target install
測試:
make test ctest --output-on-failure -j
安裝:
sudo make install
出現的問題:
安裝openmvg時,顯示 submodule(s) are missing
在安裝openmvg時,顯示
CMake Error at CMakeLists.txt:92 (message): submodule(s) are missing, please update your repository: > git submodule update -i -- Configuring incomplete, errors occurred! See also "/home/ning/software/openMVG-1.5/build/CMakeFiles/CMakeOutput.log".
解決辦法:
使用build.md裏的解決辦法,使用git命令克隆安裝包到本地
git clone --recursive https://github.com/openMVG/openMVG.git
成功解決問題!
參考:https://blog.csdn.net/qq_38185927/article/details/105957517
https://segmentfault.com/a/1190000022276314
https://blog.csdn.net/X_kh_2001/article/details/83690094
https://blog.csdn.net/weixin_45617478/article/details/104463931