建议挑选日期接近的博文来参考,由于不同更新版本的源码版本遇到的问题不同。步骤都是大概按照官网教程: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