我已经下载了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文件夹。我怎么得到它?
谢谢, 富
答案 0 :(得分:2)
你需要获得vcg lib。它必须与您的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
编译说明为there
答案 1 :(得分: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 library:
|
└──meshlab (Git clone)
├──docs
├──README.md
├──src (`meshlab.pro` is inside this)
├──...
├──...
└──vcglib (Git clone)
对我有用=)