rdfrahm
rdfrahm

Reputation: 61

Unable to compile MeshLab from source on Ubuntu 16.10

I've downloaded the MeshLab sources and updated my Qt installation to the latest (Qt Creator 4.2.0 built on Dec 9, 2016). On my first attempt to compile the meshlab_full project I found that I had to rename the io_txt folder under plugins_experimental to io_TXT. But after that it fails with this error:

In file included from ../../src/common/meshmodel.h:32:0, from ../../src/common/filterparameter.cpp:32: ../../src/common/ml_mesh_type.h:4:33: fatal error: vcg/complex/complex.h: No such file or directory #include ^ compilation terminated.

Indeed there is no vcg folder. How do I get it?

Thanks, Rich

Upvotes: 1

Views: 1875

Answers (2)

Megidd
Megidd

Reputation: 7961

Update

As commented by @AlessandroMuntoni , we can use --recursive option, and VCG would automatically be available as a submodule:

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

Original post

In meshlab.pro it is commented:

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

In general.pri it is set:

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

Therefore, I forked and cloned the VCG library inside:

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

It worked for me =)

Upvotes: 0

Eric B.
Eric B.

Reputation: 83

You need to get vcg lib. It must be at the same level than your meshlab directory :

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

Than you must get vgclib sources :

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

Instructions for compilation are there

Upvotes: 2

Related Questions