LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to load the glx extension? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-load-the-glx-extension-813591/)

CoderMan 06-11-2010 12:15 PM

How to load the glx extension?
 
Hey folks... I installed the latest NVIDIA drivers by hand on my Gentoo box. However, there is a lot of my games and programs that die at start up and error like so:

Xlib: extension "GLX" missing on display ":0.0".

I'm confused, because the extension is installed:

Code:

$ locate libglx.so
/usr/lib64/xorg/modules/extensions/libglx.so.195.36.24

And I have a load statement inside my xorg.conf:

Code:

$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Thu Apr 22 20:35:23 PDT 2010


Section "ServerLayout"
    Identifier    "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
# This loads the GLX module
    Load      "glx"
# This loads the DRI module
    Load      "dri"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier    "Mouse0"
    Driver        "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/psaux"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier    "Keyboard0"
    Driver        "kbd"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName      "Unknown"
    HorizSync      28.0 - 33.0
    VertRefresh    43.0 - 72.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection    "Display"
        Depth      24
    EndSubSection
EndSection

So, what did I forget here?

adamk75 06-11-2010 12:36 PM

Did you select the nvidia opengl module with eselect?

http://www.gentoo-wiki.info/Eselect#OpenGL

CoderMan 06-11-2010 11:30 PM

Quote:

Originally Posted by adamk75 (Post 4000460)
Did you select the nvidia opengl module with eselect?

http://www.gentoo-wiki.info/Eselect#OpenGL

There was only one on the list, and it was already selected. But I select it again and it made no difference:

Code:

$ eselect opengl list
Available OpenGL implementations:
  [1]  xorg-x11 *
$ eselect opengl set 1
Switching to xorg-x11 OpenGL interface... done
$ fgfs # Flight Gear Flight Simulator
Xlib:  extension "GLX" missing on display ":0.0".
Error: :0.0 has no GLX extension.
Xlib:  extension "GLX" missing on display ":0.0".
Error: :0.0 has no GLX extension.
Segmentation fault


John VV 06-12-2010 02:43 AM

reinstall ALL of mesa all .so and .h files
the nivdia.run installer overwrites some of them .

adamk75 06-12-2010 07:10 AM

Well first, you would have to restart X (and maybe even reboot) after using the eselect tool. And, second, you clearly didn't install the AMD proprietary drivers properly because they would show up as a separate opengl implementation. I suggest reinstalling them again (you are emerging them and not just installing them by running the installer from AMD, right?)

Adam

John VV 06-12-2010 06:44 PM

adamk75 ,CoderMan is installing a nvidia driver not a ATI one
and stated
Quote:

I installed the latest NVIDIA drivers by hand
this sounds like the nvidia.run installer from the nvidia web site.

adamk75 06-12-2010 06:51 PM

D'oh. Thanks for the correction. I usually help out with the AMD driver since that's the one I'm most familiar with. Didn't even realize I was talking about the wrong driver here.

My advice still stands, though :-) He should emerge the driver rather than using the installer from nvidia :-)

Adam


All times are GMT -5. The time now is 03:25 AM.