libGL Error

Questions about Wine on Linux
Locked
marcopark90
Newbie
Newbie
Posts: 1
Joined: Mon May 04, 2020 3:16 pm

libGL Error

Post by marcopark90 »

Hi everyone,
I am desperately trying to get wine to work, however I always get the same error:

Code: Select all

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Can anyone help me please? I REALLY do not want to get back to windows.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: libGL Error

Post by jkfloris »

Hard to say with so little information, but a few things to try:
- Make sure you have correctly installed the 32 and 64 bit drivers for your graphics card. (check with glxinfo -B)
- Install all the recommended dependencies of Wine. (If you are on Debian/ Ubuntu you are missing the libgl1-mesa-dri package)

If you need more help, post the output of the following three commands:

Code: Select all

glxinfo -B
inxi -G
lsb_release -a
michaelgugino
Newbie
Newbie
Posts: 1
Joined: Sun Dec 05, 2021 10:03 am

Re: libGL Error

Post by michaelgugino »

Hi, I was facing this same issue today.

Code: Select all

libGL error: MESA-LOADER: failed to open r600 (search paths /usr/lib/dri)
libGL error: failed to load driver: r600
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
The drivers appeared to be in those folders. I tried forcing x32 a variety of ways, but nothing was working. Finally, I found (elsewhere) you can add LIBGL_DEBUG=verbose to the cli call, and that will give better libGL errors.

Code: Select all

libGL: MESA-LOADER: failed to open /usr/lib/dri/r600_dri.so: /usr/lib/dri/r600_dri.so: wrong ELF class: ELFCLASS64
libGL error: MESA-LOADER: failed to open r600 (search paths /usr/lib/dri)
libGL error: failed to load driver: r600
libGL: MESA-LOADER: failed to open /usr/lib/dri/swrast_dri.so: /usr/lib/dri/swrast_dri.so: wrong ELF class: ELFCLASS64
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
Strange, there is a separate /usr/lib64. Upon further inspection, I discovered /usr/lib/dri was a symlink to /usr/lib64/dri, which was causing these issues. I don't know if the system created this symlink at some point, or if I did messing around a long time ago trying to get something else to work.

What I did was

Code: Select all

unlink /usr/lib/dri
dnf reinstall mesa-dri-drivers.i686
Now, the application I want to load is working fine. If something on your system requires the drivers in /usr/lib/dri, this might negatively impact your setup, so be prepared for that (in my case, I haven't noticed anything yet, but tbd).
Locked