You are not logged in.

#1 2018-05-05 02:06:34

nravic
Member
Registered: 2017-03-26
Posts: 17

MATLAB/Simulink (syms) dont work after fontconfig update

I've been wrestling with this issue for a while. Simulink's syms function refuses to work in Matlab (while everything else mostly does) and I think it has something to with fontconfig.

Matlab's error trace:

Error using mupadmex
Error in MuPAD command:

Error in symengine

Error in sym (line 184)
        [~] = symengine;

Error in syms (line 192)
toDefine = sym(zeros(1, 0));

error trace in console:

/usr/local/MATLAB/R2017a/toolbox/symbolic/mupad/../../../bin/glnxa64/mupkern: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

Not really sure how to fix this, I've tried moving libfontconfig around and creating symlinks but I'm just confused.
Would appreciate any help, thanks.

Offline

#2 2018-05-05 02:17:12

nravic
Member
Registered: 2017-03-26
Posts: 17

Re: MATLAB/Simulink (syms) dont work after fontconfig update

Nvm, fixed. For anyone looking to figure it out, remove/rename libfreetype.so.6 and libfreetype.so.6.11 from

/usr/local/MATLAB/.../bin/glnxa64/

Then just symlink your files.

ln -s /usr/lib64/libfreetype.so.6 /usr/local/MATLAB/R2017a/bin/glnxa64/libfreetype.so.6
ln -s /usr/lib64/libfreetype.so.6.13.0 /usr/local/MATLAB/R2017a/bin/glnxa64/libfreetype.so.6.13.

Offline

#3 2018-05-05 03:24:53

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: MATLAB/Simulink (syms) dont work after fontconfig update

Please remember to mark your thread as SOLVED by editing the first post and prepending [SOLVED] to the title.

Offline

#4 2018-05-23 01:55:56

ALoay94
Member
From: Egypt
Registered: 2016-04-19
Posts: 1

Re: MATLAB/Simulink (syms) dont work after fontconfig update

Thanks for sharing.
I faced the same problem and your post helped me.

Offline

#5 2018-10-09 04:24:42

amiara
Member
Registered: 2013-01-16
Posts: 22

Re: MATLAB/Simulink (syms) dont work after fontconfig update

Thanks. The same solution worked for a similar error complaining about:

 libmwmm_rmidd_mi.so 

Offline

Board footer

Powered by FluxBB