フィルターのクリア

ERROR: MATLAB is selecting SOFTWARE OPENGL rendering.

586 ビュー (過去 30 日間)
jaugusto filho
jaugusto filho 2017 年 4 月 25 日
コメント済み: karipuff 2024 年 2 月 13 日
I am trying use matlab on linux. The instalation is ok, but when I run "matlab" I get the message: "MATLAB is selecting SOFTWARE OPENGL rendering."
Help!!!
  9 件のコメント
BLANKA SCHLICHTA
BLANKA SCHLICHTA 2020 年 11 月 5 日
編集済み: BLANKA SCHLICHTA 2020 年 11 月 5 日
hallo!! Ze Wang, I have the same problem, do you install matlab after libstdc++6?
karipuff
karipuff 2024 年 2 月 13 日
as suggested by hilla gerstman and works for me:
in terminal launching the matlab, enter the line: matlab -nosoftwareopengl

サインインしてコメントする。

回答 (14 件)

Akhil Kurup
Akhil Kurup 2019 年 3 月 26 日
This can happen if your displayon linux is not set correctly. to set this
$ export DISPLAY=:0.0
and then run matlab
  1 件のコメント
rabab boulouchgour
rabab boulouchgour 2019 年 8 月 14 日
thank you this solved the problem

サインインしてコメントする。


Jan
Jan 2017 年 4 月 26 日
Is this an error or a warning message? In the latter case you can set the software OpenGL renderer manually to avoid the message during the automatic choice.
The reason for the warning is, that Matlab does not recognize the hardware OpenGL driver. Search in the docs for explanations:
docsearch opengl
  1 件のコメント
Sreelakshmi K R
Sreelakshmi K R 2017 年 10 月 10 日
編集済み: Sreelakshmi K R 2017 年 10 月 10 日
I have similiar issue with matlab 2016b in ubuntu 16.04.3. When i call matlab, it shows the above message in the terminal and i get a splash screen. Nothing happens after that. It stays that way and i get nothing else. No gui or anything.

サインインしてコメントする。


Sagar Shriram Salwe
Sagar Shriram Salwe 2018 年 10 月 4 日
編集済み: Walter Roberson 2018 年 10 月 17 日
%code
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6
This will resolved the issue
  4 件のコメント
Walter Roberson
Walter Roberson 2023 年 10 月 12 日
downloads and unpacks useless things, takes forever, and isn't helpful at the end
Walter Roberson
Walter Roberson 2023 年 10 月 12 日
AGRIM:
As described by @Leonardo Santos in https://www.mathworks.com/matlabcentral/answers/337113-error-matlab-is-selecting-software-opengl-rendering#answer_402524 for at least some distributions and releases, there is a conflict with libstdc++.so.6 . The steps described by @Sagar Shriram Salwe would have the effect of replacing libstdc++.so.6 . That would be useful in at least some distributions and releases.
I do not have any information about whether all of the steps suggested by Sagar are required to solve the problem.

サインインしてコメントする。


Ze Wang
Ze Wang 2018 年 2 月 23 日
I got the same issues with Ubuntu 16.04+R2017a and R2017b. Matlab didn't show up. But strange enough, matlab can start in VNC though I still got the same message "MATLAB is selecting SOFTWARE OPENGL rendering". Can anybody solve this problem?
  1 件のコメント
xinwei he
xinwei he 2018 年 4 月 13 日
i have the same problem, have you solved it, bro?

サインインしてコメントする。


yajun fan
yajun fan 2018 年 10 月 17 日
i also have this issue?have anyone solve?

Leonardo Santos
Leonardo Santos 2019 年 11 月 21 日
編集済み: Leonardo Santos 2019 年 11 月 21 日
In my case, this bug comes after install the matlab-support (apt-get install matlab-support) to have the matlab icon on the main menu. Apparently, the problem came up from the librarires name changes from the matlab-support. My prompted error, by the way:
MATLAB is selecting SOFTWARE OPENGL rendering.
/usr/local/MATLAB/R2018a/bin/glnxa64/MATLAB: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:
version 'GLIBCXX_3.4.22' not found (required by /usr/local/MATLAB/R2018a/bin/glnxa64/libCppMicroServices.so.3.1.1)
Following the instructions from this bug report, I navigate to the directory where my matlab is installed, and get into
cd sys/os/glnxa64
In this folder, the libstdc++.so.6 was renamed to libstdc++.so.6.bak
I guess this was done by the matlab-support. The libstdc++.so.6.bak had a symbolic link to the version of this library in the same folder, libstdc++.so.6.0.22, though. Then, instead of rename libstdc++.so.6 library to libstdc++.so.6.old as said on the aforementioned bug report, I created a symbolic link of libstdc++.so.6 to my libstdc++.so.6.0.22. Simply:
sudo ln -s libstdc++.so.6.0.22 libstdc++.so.6
Finally, the matlab started as before matlab-support. Remember to change the last command to the specific version of libstdc++.so under your sys/os/glnxa64 matlab installation folder.
  1 件のコメント
Gabriella Braz
Gabriella Braz 2020 年 9 月 17 日
This solved the problem for me! Thank you!

サインインしてコメントする。


xinwei he
xinwei he 2018 年 4 月 13 日
has anyone solved this problem?

Arturo Deza
Arturo Deza 2018 年 5 月 2 日
Bump, same problem here, and similar to this issue, except that still unresolved : https://www.mathworks.com/matlabcentral/answers/150877-why-is-matlab-r2014a-hanging-on-the-splash-screen-on-linux

Ross Neuman
Ross Neuman 2018 年 5 月 2 日
編集済み: Ross Neuman 2018 年 5 月 2 日
I was having this issue on my laptop with a legacy nvidia GPU (Quadro FX 880M) and Ubuntu 16.04, and I was able to resolve it by getting nvidia's most current drivers with:
sudo apt-get install nvidia-current
After a system reboot, the issue was resolved. I am a linux novice, so I cannot speak to the universality of this fix. I read this article to learn about updating graphics drivers.
UPDATE: With the above process I managed to install the wrong driver the first time (from nvidia-304 when I needed 340), but things seem to be working now with the correct legacy drivers. Clearly this fix is only for nvidia cards, as Arturo mentions below.
  1 件のコメント
Arturo Deza
Arturo Deza 2018 年 5 月 2 日
編集済み: Arturo Deza 2018 年 5 月 2 日
$ sudo apt-get install nvidia-current
is only useful if you are using an NVIDIA graphics card for graphics output, but I am using my integrated motherboard for that so that is not a solution for me.

サインインしてコメントする。


Athmanathan Senthilnathan
Athmanathan Senthilnathan 2018 年 10 月 24 日
The DISPLAY environment is probably not set. Check if "echo $DISPLAY" returns something. If that is empty, set it with "export DISPLAY=:0".

Kyohei Okimura
Kyohei Okimura 2018 年 11 月 26 日
In my case, it was a permission error.
Did you try "xhost +" or any other similar commands?
私の場合はアクセス許可の問題でした.
xhost +等は試されていますか?

Martin Laurenzis
Martin Laurenzis 2020 年 11 月 23 日
Hi,
I am running Matlab 2020b on Xubuntu 20.04 LTS with NVidia GTX1080TI.
I solved the problem by updating the graphics card driver.
Thanks, Martin

Luiz Henrique Souza Caldas
Luiz Henrique Souza Caldas 2021 年 4 月 16 日
I`m receiving the same ERROR:
/usr/local/MATLAB/R2015a/bin/glnxa64/need_softwareopengl: /usr/local/MATLAB/R2015a/bin/glnxa64/../../sys/os/glnxa64/
libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/libGLU.so.1)
/usr/local/MATLAB/R2015a/bin/glnxa64/need_softwareopengl: /usr/local/MATLAB/R2015a/bin/glnxa64/../../sys/os/glnxa64/
libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/libGLU.so.1)
MATLAB is selecting SOFTWARE OPENGL rendering.
Does anyone know how to solve it?
  1 件のコメント
Luiz Henrique Souza Caldas
Luiz Henrique Souza Caldas 2021 年 4 月 16 日
I´m trying to run Matlab in a Arch Linux based distro, Manjaro KDE, kernel 5.10.26-1, with a GeForce GTX 1070 GPU.

サインインしてコメントする。


Mahmoud
Mahmoud 2023 年 7 月 16 日
編集済み: Mahmoud 2023 年 7 月 16 日
Hello, everyone. I too seems to get an error similar to what is being discuss.
Here's the error I got:
MATLAB is selecting SOFTWARE OPENGL rendering.
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_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: iris
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 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)
failed to load driver: kms_swrast
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 swrast driver
I am wondering what's problem and how to fix it. Anyone with a solution should please share. Thank you.
  1 件のコメント
Mahmoud
Mahmoud 2023 年 7 月 16 日
Upon searching, I found this answer https://stackoverflow.com/a/63230758/13833346 from stackoverflow to resolve the error.
Thanks
Mahmoud.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by