问题阐述
今天在Ubuntu18.04LTS上运行之前建好的simulink的仿真时,只听见duangduang两声报错声,命令行报错了:
simulink
Warning: MATLABWindow application failed to launch. Unable to launch the MATLABWindow application
解决方案
>> cd(matlabroot)
>> ! bin/glnxa64/MATLABWindow
bin/glnxa64/MATLABWindow: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
那么,你应该在Ubuntu 18.04的终端上输入
sudo apt-get install libgconf-2-4
情况2:
如果命令行显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: g_log_structured
或者显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: g_log_structured_standard
这两种是libglib-2.0.so 出了问题
显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: FT_Get_Var_Blend_Coordinates
或者显示:
bin/glnxa64/MATLABWindow: symbol lookup error: _somelibrary_: undefined symbol: FT_Done_MM_Var
这两种是libfreetype.so.6出了问题
或者显示:
bin/glnxa64/MATLABWindow: path to/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by _somelibrary_)
这种是libstdc++.so.6出了问题
解决方案
# cd /usr/local/MATLAB/R2017b (or wherever you may have installed MATLAB)
# cd cefclient/sys/os/glnxa64 (or whichever directory is indicated in above table)
# mkdir exclude
# mv libglib-2.0.so* exclude/ (or whichever library is indicated in above table)