1

我已经下载了 MeshLab 源并将我的 Qt 安装更新到最新版本(Qt Creator 4.2.0 构建于 2016 年 12 月 9 日)。在我第一次尝试编译 meshlab_full 项目时,我发现我必须将 plugins_experimental 下的 io_txt 文件夹重命名为 io_TXT。但之后它失败并出现此错误:

在 ../../src/common/meshmodel.h:32:0 包含的文件中,来自 ../../src/common/filterparameter.cpp:32: ../../src/common/ml_mesh_type .h:4:33:致命错误:vcg/complex/complex.h:没有这样的文件或目录#include ^ 编译终止。

确实没有vcg文件夹。我如何得到它?

谢谢,丰富

4

2 回答 2

2

您需要获取 vcg 库。它必须与您的 meshlab 目录处于同一级别:

yourdevelfolder/
 |
 ├──meshlab
 │   ├──docs
 │   ├──README.md
 │   ├──src
 │   ├──...
 │   └──...
 └──vcglib
     ├──apps
     ├──doc
     ├──eigenlib
     ├──...
     └──...

比你必须获得 vgclib 来源:

$ git clone https://github.com/cnr-isti-vclab/vcglib.git
$ cd vcglib
$ git checkout devel

编译说明

于 2017-01-19T08:37:19.407 回答
0

更新

正如@AlessandroMuntoni 评论的那样,我们可以使用--recursive选项,VCG 将自动作为子模块提供:

git clone --recursive https://github.com/cnr-isti-vclab/meshlab

原帖

其中meshlab.pro评论:

# MESHLAB_SOURCE_DIRECTORY: the directory where is placed the main meshlab.pro

其中general.pri设置:

# VCG directory
VCGDIR = $$MESHLAB_SOURCE_DIRECTORY/../vcglib

因此,我分叉并克隆了里面的VCG 库

 |
 └──meshlab (Git clone)
     ├──docs
     ├──README.md
     ├──src (`meshlab.pro` is inside this)
     ├──...
     ├──...
     └──vcglib (Git clone)

它对我有用=)

于 2020-06-24T12:30:39.503 回答