GIBBON icon indicating copy to clipboard operation
GIBBON copied to clipboard

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

Open Kevin-Mattheus-Moerman opened this issue 5 years ago • 1 comments

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

Kevin-Mattheus-Moerman avatar Dec 24 '20 12:12 Kevin-Mattheus-Moerman

Thanks for your help! This has helped me run ggremesh on my local computer.

If it helps others, I would also like to point out that libgeogram is required. This can be installed by cloning https://github.com/alicevision/geogram.git and following the building/installation instructions.

shermanlo77 avatar Aug 23 '22 15:08 shermanlo77