MESA-LOADER , Fontconfig , Ubuntu 23.04
조회 수: 141 (최근 30일)
이전 댓글 표시
Hello ,
Lately, I upgraded to Ubuntu 23.04 with Gnome 44 and Matlab 2023a
When I open Matlab I get :
┌──(####@##############)-[~]
└─$ matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf",
line 6: unknown element "reset-dirs"
MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so:
cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so:
cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so:
cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so:
cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
I tested Matlab and Simulink, They take double of time to load compared to 2022b and some blocks are missing their names
can anyone help?
Thanks
댓글 수: 0
채택된 답변
Seagull White
2023년 5월 11일
편집: Seagull White
2023년 5월 11일
I have same question when I update my Matlab to 2023a. I solve it:
cd /user/local/MATLAB/R2023a/sys/os/glnxa64
sudo mv libstdc++.so.6 libstdc++.so.6.oldbackup
sudo ln -s /use/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
nano ~/.bashrc
''' #add to end line
alias matlab='echo "-Djogl.disable.openglarbcontext=1">java.opts && /use/local/MATLAB/R2023a/bin/matlab && rm java.opts'
'''
댓글 수: 2
geofo
2023년 12월 20일
The correct path for R2023b is:
/usr/local/MATLAB/R2023b/sys/opengl/lib/glnxa64$
but there is no libstdc++.so.6 file there. Does not work.
추가 답변 (1개)
Andreas Viborg
2024년 3월 11일
편집: Andreas Viborg
2024년 3월 11일
I got this error too with MATLAB2023b on Ubuntu 22.04 LTS.
First I updated to the latest mesa drivers:
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade -y
I found out that when I start MATLAB by clicking the desktop icon it uses the command as specified in /usr/share/applications/matlab.desktop:
[Desktop Entry]
Name=MATLAB R2023b
Comment=Matlab
Icon=/usr/local/MATLAB/R2023b/bin/glnxa64/cef_resources/matlab_icon.png
Exec=/usr/local/MATLAB/R2023b/bin/glnxa64/MATLAB -desktop -prefersoftwareopengl
Terminal=false
Type=Application
Categories=Software
Changing this file to use the startup shell script which seems to patch OpenGL issues solved it:
[Desktop Entry]
Name=MATLAB R2023b
Comment=Matlab
Icon=/usr/local/MATLAB/R2023b/bin/glnxa64/cef_resources/matlab_icon.png
Exec=/usr/local/MATLAB/R2023b/bin/matlab -desktop
Terminal=true
Type=Application
Categories=Software
Strange thing though is that the MESA-LOADER can't find files even though the files are there:
~$> /usr/local/MATLAB/R2023b/bin/glnxa64/MATLAB -desktop -prefersoftwareopengl
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: swrast
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:11.0, 0x7f1c40444d30, refCount 1, unCloseable false]
~$> ls -l /usr/lib/x86_64-linux-gnu/dri
total 514508
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 crocus_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 d3d12_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 d3d12_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 i915_dri.so
-rw-r--r-- 1 root root 1764040 Jul 11 2020 i965_drv_video.so
-rw-r--r-- 1 root root 8004216 Apr 12 2023 iHD_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 iris_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 kms_swrast_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 nouveau_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 nouveau_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 r300_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 r600_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 r600_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 radeonsi_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 radeonsi_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 swrast_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 virtio_gpu_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 virtio_gpu_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 vmwgfx_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 zink_dri.so
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!