Skip to content

Linux: Compiling geogram and tetgen for ggremesh and runTetGen #144

@shermanlo77

Description

@shermanlo77

Linux users may have problems using the MATLAB functions ggremesh and runTetGen. One of which is discussed in issue #81.

The functions ggremesh and runTetGen will call externally lib_ext/lin64/bin/vorpalite and lib_ext/tetGen/lin64/tetgen which are pre-compiled binaries. A disadvantage of using these binaries is that they may not be compatible with some Linux computers.

For example, for myself, calling ./lib_ext/tetGen/lin64/tetgen caused the error

/lib64/libm.so.6: version `GLIBC_2.29' not found

I would recommend Linux users compile the binaries themselves. Perhaps this could be done automatically when calling installGibbon.m as a feature or option.

vorpalite

Download the source from the GitHub repo. Follow the compilation instructions. This requires cmake and many prerequisites (read the error messages for hints). Replace the GIBBON's version of vorpalite.

git clone https://github.com/alicevision/geogram.git
cd geogram
sh -f configure.sh
cd build/Linux64-gcc-dynamic-Release
make
cp bin/vorpalite <path to GIBBON>/lib_ext/geogram/lin64/bin/vorpalite

tetgen

Download the source from the GitHub repo. Compile and replace the GIBBON's version of tetgen.

git clone https://github.com/libigl/tetgen.git
cd tetgen
make
cp tetgen <path to GIBBON>/lib_ext/tetGen/lin64/tetgen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions