Skip to content

安装meshlab心得

安装meshlab心得 published on No Comments on 安装meshlab心得

Workstation的glibc版本过低,无解。只能往ubuntu装

1. 下载vcglib 1.01,
https://github.com/cnr-isti-vclab/vcglib/releases
这是一个header file only的库,不用安装

2. 选择相应meshlab版本,V2016.12,
http://www.meshlab.net/#download

3. 按照readme里面的提示放置。qt需要5.8版本,设置好路径

4. 安装
cd src/external/
gmake external.pro
make

cd src/
gmake meshlab_full.pro
make

5. 出错
Cannot find file: /home/nicklj/Platform/thirdparty/meshlab/src/plugins_experimental/io_TXT/io_TXT.pro.
make: *** [sub-plugins_experimental-io_TXT-make_first-ordered] Error 2
发现目录里面io_txt.pro是小写,这是在逗我?
mv plugins_experimental/io_TXT/io_txt.pro plugins_experimental/io_TXT/io_TXT.pro

5. 继续出错
/usr/bin/ld: ../../external/lib/linux-g++/libmpir.a(lt4-clear.o): unrecognized relocation (0x2a) in section `.text'
参考:https://github.com/cnr-isti-vclab/meshlab/issues/47

LibMpir is an external library that could be a little tricky to compile (that's particularly true on Windows...a lot easier on Linux), so we provide inside the MeshLab source code an already compile version of the library itself. Obviously that approach could be dangerous, considering the wide range of the compilers existing. If you are interested in the plugin I suggest you to:

download the mpir 2.4.0 source code from the mpir official site http://mpir.org/downloads.html
call ./configure --enable-cxx --enable-static --with-pic in the extracted library folder
call ./make
move the generated mpir.h and mpirxx.h in src\external\inc\linux-g++\mpir-2.4.0
move the static libs libmpir.a and libmpirxx.a in src\external\lib\linux-g+(be careful the files are compiled in a hidden folder if you have the "don't show hidden folders" file browser option set to true you can waste an afternoon, as it happens to me, to find the compiled libs 😀 )
try to compile again the filter_csg plugin in MeshLab

编译后的.a文件在.lib目录下

6. make meshlab, 搞定

Leave a Reply

Your email address will not be published. Required fields are marked *