Why do I get an error message about ‘libmwdastudio.so’ when I try to export my figure to file using MATLAB 7.7 (R2008b)?

23 views (last 30 days)
When I try to export my figure to a PNG file, I get the following error message:
MATLAB:dispatcher:loadLibrary Can't reload '/local1/matlab/bin/glnxa64/libmwdastudio.so':libXfixes.so.3: cannot open shared object file: No such file of directory
Caught MathWorks::System::FatalException

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 17 Jan 2017
Please make sure that all the required libraries are installed on your system.
We have noticed that in some instances, ‘libXfixes.so.3’ library is missing in Suse Linux Enterprise 9 installations.
It is likely that MATLAB does not support XFree86.
To resolve the error messages regarding ‘libXfixes.so.3’:
1) Check if the file ‘libXfixes.so.3’ exists on the system. Since it could be just a symbolic link to another file, use “ls –l” to see if it is a link, and if so, whether it points to the real file.
Additionally, you can also approach this file check by navigating to the $MATLABROOT /bin/glnxa64/ directory and see what files ‘libmwdastudio.so’ depends on using “ldd” on the system prompt:
ldd libmwdastudio.so
ldd libmwdastudio.so | grep libX
This will list the various libraries it depends on as well as where they’re located. The list may be dependent on the particular Linux distribution and/or X-windows version you have.
Here $MATLABROOT is the MATLAB root directory which can be obtained by executing the following at the MATLAB command prompt:
2) If the file ‘libXfixes.so.3’ is missing and you do not use Simulink/DA studio, a temporary work around to “fix” the figure exporting issue is to modify ‘isslhandle.m’. ‘isslhandle.m’ is located at:
$MATLABROOT /toolbox/matlab/graphics/private/isslhandle.m.
In ‘isslhandle.m’, find the line
isSL = ishandle(h);
and replace it with
isSL = ishandle(h) && ~ishghandle(h);
This issue also came up on a Rock Cluster 4.3:
MATLAB R2008b (and presumably future versions) require the 64-bit version of the library xorg-x11-Mesa-libGLU-6.8.2-1.EL.18.i386 to be installed to save various graphics file formats.
to /home/install/site-profiles/4.3/nodes/extend-compute.xml and reinstalling the nodes solved the problem. This forces the 64-bit library to be installed.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!