MVS-Texturing Exercise

mvs-texturing

参考链接:https://github.com/nmoehrle/mvs-texturing

准备工作

要求

MVS-Texturing Exercise_第1张图片

检测

MVS-Texturing Exercise_第2张图片

下载其余的安装包

  1. libpng
    MVS-Texturing Exercise_第3张图片检查/usr/local/lib里无libpng。
    sudo apt-get install libpng-dev
    MVS-Texturing Exercise_第4张图片查看正确的头文件和链接库的位置
    参考:https://www.cnblogs.com/sp-li/p/8306745.html
    MVS-Texturing Exercise_第5张图片

编译

Compilation Build Status

git clone https://github.com/nmoehrle/mvs-texturing.git
cd mvs-texturing
mkdir build && cd build && cmake ..
make (or make -j for parallel compilation)

If something goes wrong during compilation you should check the output of the cmake step. CMake checks all dependencies and reports if anything is missing.
If you think that there is some problem with the build process on our side please tell us.
If you are trying to compile this under windows (which should be possible but we haven’t checked it) and you feel like we should make minor fixes to support this better, you can also tell us.

出错:
MVS-Texturing Exercise_第6张图片尝试解决:

下载eigen,发现已下载过。查看相关教程发现需复制Eigen文件夹至/usr/local/include,即可。 现尝试重新编译中…

//可能不对,是编译过程中下载eigen3.3.2tar.gz,但是网络情况不佳,导致通信协议中断。
会成功的!

问题

问题:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’
参考:https://blog.csdn.net/x356982611/article/details/71169940

下载qt:
https://blog.csdn.net/wuweifeng_2017/article/details/78322249—无用
下载安装包后,使用“./qt……”会出现找不到该命令!!!!(fail!)
借鉴:http://www.pianshen.com/article/6147187926/

出现设备锁以后,即 ubuntu提示E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
检查用:
ps -e | grep apt
解除用:
sudo rm /var/lib/dpkg/lock-frontend

备份:
default.conf里为:
/usr/lib/x86_64-linux-gnu/qt4/bin
/usr/lib/x86_64-linux-gnu
参考:https://blog.csdn.net/anyuliuxing/article/details/90369822

将第一行改为自己安装路径下的bin目录的路径,第二行改为Qt5.12.3目录的路径
qmake version问题:/usr/bin/ld: 找不到 -lGL
解决:https://blog.csdn.net/u010159842/article/details/56833030

测试

imdir=

codedir=do the compilation>
cd $codedir

# Download and compile MVE
cd $codedir
git clone https://github.com/simonfuhrmann/mve.git
make -j8 -C mve

# Compile UMVE
cd mve/apps/umve && qmake && make

# Download and compile texrecon
cd $codedir
git clone https://github.com/nmoehrle/mvs-texturing.git texrecon
cd texrecon && mkdir build && cd build

cmake ..


make -j8

# Image import & bundling (images --> camera parameters)
cd $imdir
$codedir/mve/apps/makescene/makescene -i . scene
$codedir/mve/apps/sfmrecon/sfmrecon scene

# Multi-view stereo reconstruction (images + camera parameters --> depth maps)
$codedir/mve/apps/dmrecon/dmrecon -s3 scene # -s3 downscales the images three times

MVS-Texturing Exercise_第7张图片

# Surface reconstruction (depth maps + camera parameters --> 3D model)
$codedir/mve/apps/scene2pset/scene2pset -F3 scene point-set.ply
$codedir/mve/apps/fssrecon/fssrecon point-set.ply surface.ply
$codedir/mve/apps/meshclean/meshclean -t10 -c10000 surface.ply surface-clean.ply

# Texturing (3D model + images + camera parameters --> textured 3D model)
$codedir/texrecon/build/apps/texrecon/texrecon scene::undistorted surface-clean.ply textured

# Inspect results
$codedir/mve/apps/umve textured.obj

执行到倒数第二步都没有问题,最后一步apps/umve是一个目录,所以应该是apps/umve/umve textured.obj
但是执行结果失败:
MVS-Texturing Exercise_第8张图片现在尝试安装openGL
参考:https://blog.csdn.net/huangkangying/article/details/82022177
安装有bug,需要更新apt,但是总有一点点下载不下来,所以更换源,参照https://blog.csdn.net/qq_41930236/article/details/93247412,为中科大的镜像源:

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

你可能感兴趣的:(工作记录)