简介
今天使用MATLAB2017b进行Robotics Toolbox 的部分仿真,结果发现报如题错误,根据网上查询资料解决,现记录如下。
报错详情:
ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
2:MATLABWindow application failed to launch. Unable to launch the MATLABWindow application
Error in Simulink.messageviewer.internal.CEFBrowserDialog
Error in Simulink.messageviewer.internal.BrowserDialogFactory.create
Error in slmsgviewer
Error in slmsgviewer/PersistentInstance
Error in slmsgviewer.processRecord
Warning: The following error was caught while executing 'Simulink.messageviewer.internal.CEFBrowserDialog' class destructor:
Struct contents reference from a non-struct array object.
Error in Simulink.messageviewer.internal.CEFBrowserDialog/isValid
Error in Simulink.messageviewer.internal.CEFBrowserDialog/delete
Error in Simulink.messageviewer.internal.CEFBrowserDialog
Error in Simulink.messageviewer.internal.BrowserDialogFactory.create
Error in slmsgviewer
Error in slmsgviewer/PersistentInstance
Error in slmsgviewer.processRecord
解决方案
第一,先根据如下命令查出问题所在
>> cd(matlabroot)
>> ! bin/glnxa64/MATLABWindow
我的报错如下:
>> bin/glnxa64/MATLABWindow: symbol lookup error: /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0: undefined symbol: g_log_structured_standard
第二,进入matlab根目录,然后使用如下命令解决
cd /cefclient/sys/os/glnxa64/
mkdir bak
mv * bak
mv bak/libcef.so ./
再跑即可解决。
参考目录
【1】https://stackoverflow.com/questions/50526714/matlabwindow-application-failed-to-launch-why-isnt-matlab-functioning-prop
【2】https://www.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux