1、openMVS在ubuntu20.04下的安装

发布时间 2023-11-26 22:11:36作者: gary_123

依赖安装

按照这里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

 

完成。