As suggested in this post I have tried to replace the libstdc++.so.6 under matlab installation path with the /usr/lib/x86_64-linux-gnu/libstdc++.so.6, but when I do this my model crashes immediately when I try to compile it.
I have realized that it is also immediately crashing when I completely delete the ibstdc++.so.6 under matlab installation path, or just create symbolic link to the /usr/lib/x86_64-linux-gnu/libstdc++.so.6.
The issue might be due to incompatibility between the libstc++ shipped by MATLAB and the libstdc++ shipped with the system. Try to update the Standard C++ library in your Linux distribution the below steps:
Open terminal and run the command:
sudo apt –get install libstdc++
Re-launch Matlab.
If the issue persists, then run the follwing commands in the termina:
When I have investigated the core dump, I have actually realized that the reason for the crash was that Matlab was looking for the wrong version of the libprotobuf.so, compared to the libprotobuf that I've used to generate my mex function.
I've used legacy code tool to generate a mex function and specified protobuf 3.5 version installation for the dependency folder. But when Matlab calls this mex function, it somehow tries to use it's own libprotobuf.so (an older version). Renaming the libprotobuf.so under matlab install directory to .old seems to allow me to run the mex function, but I guess since some internal matlab tools is using this libprotobuf.so library, I see some errors in the Matlab terminal like "error in matlab.internal.webwindow"
Luckily, these errors dont interfere with the simulation
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Translated by
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.