AthinaLange / CoastalLens

Toolbox to rectify UAV video in coastal oceanography
MIT License
5 stars 0 forks source link

Problem using system command in input_day_flight_data on Ubuntu machine. #11

Open AthinaLange opened 9 months ago

AthinaLange commented 9 months ago

Some Ubuntu versions give this error message when starting up MATLAB:

MATLAB is selecting SOFTWARE OPENGL rendering.
Gtk-Message: 11:36:15.967 : Failed to load module "canberra-gtk-module".

This is due to an incompatibility between the system's version of the libstdc++.so.6 library ad the version that comes packaged with MATLAB.
A tested fix (Ubuntu 22.04.3 LTS, Matlab 2023b) is to rename the MATLAB one to .old so the system command is forced to use the external program compatible version in /usr/local/lib. Follow this thread. Run the following commands in the Terminal:

sudo apt-get install libcanberra-gtk-module
sudo apt-get install packagekit-gtk3-module

cd /usr/local/MATLAB/R2023b/sys/os/glnxa64
sudo mv libstdc++.so.6 libstdc++.so.6.old