Skip to content

ggremesh (Geogram) cannot find correct libstdc++.so.6 on Linux #81

@Kevin-Mattheus-Moerman

Description

@Kevin-Mattheus-Moerman

There is an issue setting up ggremesh on Linux (and perhaps also MacOS/X ?). MATLAB ships with its own version of ligstdc++. Geogram and ggremesh however require a specific version. Below a solution is provided which worked for me (it is based on: https://www.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6#comment_824233).

  1. Locate libstdc++ on your system by running (this will show you the library is used/occurs in lots of places including in MATLAB directories.):
locate libstdc++
  1. Identify the location where MATLAB's version is stored. On my system the path was: /usr/local/MATLAB/R2020b/sys/os/glnxa64

  2. To disable to version shipped with MATLAB we can rename it (take a note of this step and keep track of the old file so you can reverse the process if needed). Rename the version used by MATLAB, e.g. by changing the extension or adding something like .old to the name. You can use something like this to rename the file (Double check these names as they may be different for your system!, the name should match the one Geogram throws the error for):

sudo mv libstdc++.so.6 libstdc++.s0.6.old
  1. Now Geogram should be able to use the compatible Linux system default version. Perhaps a MATLAB or system restart is required on your system.

  2. Run HELP_ggremesh to test if Geogram now works with GIBBON

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