Cannot understand error message --- Invalid MEX-file

1 次查看(过去 30 天)
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

回答(1 个)

José-Luis
José-Luis 2016-12-20
编辑:José-Luis 2016-12-20
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:
  1. Identify the location where MATLAB is installed
  2. Navigate to the sys/os/glnxa64 directory within this installation folder
  3. Rename libstdc++.so.6 library to libstdc++.so.6.old
and the error might disappear. Otherwise ignore this and reinstate the original name.
  3 个评论
José-Luis
José-Luis 2016-12-21
My pleasure.
Please accept the answer that best solves your problem.
Alvaro
Alvaro 2021-5-30
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by