Could not probe OpenGL Ultimaker Cura Slicer
This article is a guide to fix Failed To Probe OpenGL. I see Ultimater has released the latest Cura Slicer application which is version 5.1. of course there is a system update it makes.
Therefore I downloaded it to run on my Linux Operating System, Pop OS 22.04 which is based on Ubuntu.
But when I run it in the terminal, the problem appears like this:
neon@linux:~/Downloads$ ./Ultimaker-Cura-5.1.0-linux.AppImage
PyInstaller/loader/pyimod03_importers.py:495: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
libGL error: 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)
libGL error: failed to load driver: crocus
libGL error: 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)
libGL error: failed to load driver: crocus
libGL error: 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)
libGL error: failed to load driver: swrast
Then a pop up will appear like this, cura could not probe opengl ubuntu:
Error box: Failed to probe OpenGL. Could not probe OpenGL. This program requires OpenGL 2. or higher. Please check your video card drivers.
Failed to obtain opengl 2.1 functions, Why?
Why this program requires opengl 2.0 or higher?
This error occurs due to a library mismatch between the graphics driver and libstdc++ that is included with AppImage.
This usually happens on the latest (modern) linux distros, so there is an error in the library.
This is not a problem with the hardware you are using.
How to run Cura 5 Without Error?
Please Download Cura Linux Modern Version
After this error appears, Ultimaker immediately improve the AppImage file of Cura Slicer. If previously you only saw 1 option for linux distro, now in download page, you will see there are second options available is Download Cura Slicer Linux Modern Linux.
If you go to download Cura Slicer Ultimaker on Download page, then you will see a pop up like this:
Then choose “Ultimaker Cura 5.1.0 Linux-Moderna 64-bit” to avoid Failed To Probe OpenGL problems on your linux distro.
Run appImage in terminal using “LD_PRELOAD”
Other than the above method, there is one more way you can do that is to use the terminal and add the “LD_PRELOAD” command. This will fix the Failed To Probe OpenGL error.
On Debian and their derivative like Ubuntu
For the latest Linux distributions Debian, Ubuntu, Pop OS, Linux Mint, and their derivatives, use the following command. Make sure you are in the folder that contains the Ultimaker Cura AppImage file.
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./Ultimaker-Cura-5.0.0-linux.AppImage
On Fedora
For Fedora and its redhat derivatives, you can use the following command:
LD_PRELOAD=/usr/lib64/libstdc++.so.6 ./Ultimaker-Cura-5.0.0-linux.AppImage
# Reported on KDE with Wayland and Intel graphics.
QT_QPA_PLATFORM=xcb LD_PRELOAD=/usr/lib64/libstdc++.so.6 ./Ultimaker-Cura-5.0.0-linux.AppImage
On OpenSuse
If you are using OpenSuse use the following command:
QT_QPA_PLATFORM=xcb LD_PRELOAD=/lib64/libstdc++.so.6 ./Ultimaker-Cura-5.0.0-linux.AppImage
Have a nice day with this Failed To Probe OpenGL article.
Many thanks to ultimaker forum.
Read more:
> Technology Types Of 3D Printing Machine
> Guide to install android studio Linux Pop OS
> Cura Profile Polycarbonate (PC) for Prusa i3 MK3
> Profile Cura ABS For Prusa i3 MK3 My experience