1、openMVS以及openMVG在ubuntu20.04下的安装

依赖安装

按照这里https://github.com/cdcseacave/openMVS/wiki/Building的安装说明,进行安装,需要说明的是

1、Eigen在ubuntu 20.04中是3.3.7,它需要3.4版本或者以上的,故需要到这里https://eigen.tuxfamily.org/index.php?title=Main_Page来下载一个3.4版本的,比如.tar.gz;

2、VCG库

从地址http://github.com/cnr-isti-vclab/vcglib/直接下载到本地,然后在后面编译的时候指定路径就可以了,

3、其他库比较容易,我自己的电脑上其他库已经安装好了;

 

openMVS下载并编译

#Clone OpenMVS
git clone --recurse-submodules https://github.com/cdcseacave/openMVS.git

#Make build directory:
cd openMVS
mkdir make
cd make

#Run CMake:
cmake -DVCG_ROOT=vcg文件夹路径 -DCMAKE_BUILD_TYPE=Release  ..

#Build:
make

#Test
make test

#Install OpenMVS library (optional):
make install

 

完成。

 另外要想编译出Viwer,需要apps/viewer/CMakeLists.txt下把FIND_PACKAGE(GLEW QUIET)改为FIND_PACKAGE(GLEW REQUIRED)

 

openMVG更简单一些

安装依赖

Install the required external libraries.

$ sudo apt-get install libpng-dev libjpeg-dev libtiff-dev libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev

If you want see the view graph svg logs, install Graphviz.

$ sudo apt-get install graphviz

下载代码

$ git clone --recursive https://github.com/openMVG/openMVG.git
$ mkdir openMVG_Build && cd openMVG_Build

配置并编译

$ cmake -DCMAKE_BUILD_TYPE=RELEASE ../openMVG/src/ (我采用cmake -DCMAKE_BUILD_TYPE=RELEASE -DOpenMVG_BUILD_TESTS=ON -DOpenMVG_BUILD_EXAMPLES=ON ../openMVG/src/)
$ cmake --build . --target install

一般不会出问题。

posted on 2023-11-26 22:06  gary_123  阅读(318)  评论(0编辑  收藏  举报

导航