- Identify the location where MATLAB is installed
- Navigate to the sys/os/glnxa64 directory within this installation folder
- Rename libstdc++.so.6 library to libstdc++.so.6.old
Cannot understand error message --- Invalid MEX-file
2 views (last 30 days)
Show older comments
I am unable to understand what the following error statement means. Could somebody please explain how to resolve this.
Invalid MEX-file '/home/kaustubh/navpadfork/fastMarching/toolbox_fast_marching/perform_front_propagation_2d.mexa64': /usr/local/MATLAB/R2015b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.8' not found
0 Comments
Answers (1)
José-Luis
on 20 Dec 2016
Edited: José-Luis
on 20 Dec 2016
Recent versions of Matlab changed their version of libstdc++.so with all the associated fun that implies. It sounds like it is a bug similar to this.
Copying from the link:
and the error might disappear. Otherwise ignore this and reinstate the original name.
3 Comments
Alvaro
on 30 May 2021
Hi, when doing this fix I get afterwars the following error in matlab:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x59c93a7e, isOwner false, <4cbaae98, 2acccb5b>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
... 2 more
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!