Solved libGL error: No matching fbConfigs or visuals found

Hello, I am on a pretty fresh FreeBSD 12.1-RELEASE amd64 system and I have installed a variety of ports that I have built using Poudriere.

Initially I installed i386-wine-devel to play a game, which basically worked. Then, in an attempt to play a x64 game, I removed i386 wine and installed the x64 bit version. Then, I went back. Ultimately, I am now hitting this error when starting some programs and I have no idea why. I also have the linux compat layer installed and loaded.

When I run /compat/linux/bin/glxgears I get the following error:

Code:
Can't read /proc/cpuinfo: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  42
  Current serial number in output stream:  44

Code:
/compat/linux/bin/glxgears:
    linux_vdso.so.1 =>  (0x00007ffffffff000)
    libGL.so.1 => /lib64/libGL.so.1 (0x0000000800a00000)
    libm.so.6 => /lib64/libm.so.6 (0x0000000800e00000)
    libX11.so.6 => /lib64/libX11.so.6 (0x0000000801200000)
    libc.so.6 => /lib64/libc.so.6 (0x0000000801600000)
    libGLX.so.0 => /lib64/libGLX.so.0 (0x0000000801a00000)
    libXext.so.6 => /lib64/libXext.so.6 (0x0000000801e00000)
    libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x0000000802200000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000000802600000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000000802a00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000000800604000)
    libxcb.so.1 => /lib64/libxcb.so.1 (0x0000000802e00000)
    libXau.so.6 => /lib64/libXau.so.6 (0x0000000803200000)

This happens when I try running linux binaries, and for some really weird reason, wine. Normal glxgears, from mesa-demos, works perfectly fine.

I have seen a ton of threads that have a similar error come up, but without a solution. They entertain the idea that something is symlinked incorrectly, but I do not know how to deduce that, nor fix it.

If it helps, these are the packages I have installed on my system through ports.

Code:
emulators/i386-wine-devel
graphics/linux-c7-glx-utils
graphics/mesa-demos
x11/linux-nvidia-libs
x11/nvidia-driver
x11/nvidia-settings
x11/nvidia-xconfig

nvidia-driver-440.82_1
Name           : nvidia-driver
Version        : 440.82_1
Installed on   : Tue Apr 28 15:38:14 2020 EDT
Origin         : x11/nvidia-driver
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : x11 kld
Licenses       : NVIDIA
Maintainer     : danfe@FreeBSD.org
WWW            : https://www.nvidia.com/object/unix.html
Comment        : NVidia graphics card binary drivers for hardware OpenGL rendering
Options        :
    ACPI_PM        : off
    DOCS           : on
    LINUX          : on
    WBINVD         : off
Shared Libs required:
    libXext.so.6
    libX11.so.6
Shared Libs provided:
    libGLX_nvidia.so.0
    libnvidia-ml.so.1
    libGL.so.1
    libvdpau_nvidia.so.1
    libnvidia-glsi.so.1
    libGLdispatch.so.0
    libGLESv2_nvidia.so.2
    libGLESv1_CM_nvidia.so.1
    libEGL.so.1
    libnvidia-eglcore.so.1
    libnvidia-cfg.so.1
    libGLESv1_CM.so.1
    libOpenGL.so.0
    libGLESv2.so.2
    libnvidia-glcore.so.1
    libEGL_nvidia.so.0
    libGLX.so.0
    libnvidia-tls.so.1
Annotations    :
    FreeBSD_version: 1201000
    repo_type      : binary
    repository     : Poudriere
Flat size      : 149MiB
Description    :
These are the official NVidia binary drivers for hardware OpenGL rendering
in X11, using the GLX extensions.

Please help!
 
Oh man, you're right, I guess I built those linux-nvidia-libs and didn't install them. Can we delete posts?
 
Back
Top