OpenGL Issues
Posts: 17
Hello MEPIS, and thank you for a superior Linux distro!
I have been enjoying MEPIS for two weeks with the exception of a stubborn issue with OpenGL. After initially installing 2003.10 release, I was happy to discover that the proprietary NVIDIA drivers are already there, and setup for my GeForce 4 MX. Unfortunately though, after installing 'Americas Army' I was initially having a problem where this (SDL) game would only display at a max of 800x600. Since I had gotten used to playing at 1024x768 on the Mandrake distro I used before, this was no good. I noticed that the included drivers appear to be older than the current ones on the NVIDIA site, so I went ahead and installed the 1.0-5328 drivers from the NVIDIA download page. Everything works fine, except when I try and start 'Americas Army' - now I just get the following message:
Could not load OpenGL library
History:
Exiting due to error
Note that glxgears works just fine. So.... Is there a way to fix this with the NVIDIA provided drivers? Or failing that, is there a way to reinstall the original MEPIS provided drivers and somehow reconfig so that I will be abel to disply OpenGL apps in fullscreen 1024x768? One final data point that I have just noted is that it appears that MEPIS set the monitor originally to have a
Thanks in advance for any help!
ati 3d rage lt pro
Posts: 43
Yeah I have had trobles figuring out how to fix it up with my rage LT pro. Is there some amazing documentation on open gl that I am missing?
-troy
My solution
Posts: 2
I installed MEPIS yesterday (poor Slackware lost out) and I've already done a few things that I'll post when I have a bit more time (too busy playing at the moment). So as my first post on this forum here's what I managed to work out in the last half hour or so.
I managed to get things working with these 'simple' steps:
1) Download the 4.3 drivers from the ATI website.
2) Use alien to convert the rpm to a deb:
alien fglrx-glc22-4.3.0-3.7.0.i386.rpm
3) Remove the nvidia glx extensions:
apt-get remove nvidia-glx
4) Install the ati drivers:
dpkg -i --force-overwrite flgrx-glc22-4.3.0-4.7_i386.deb
5) Restart your xserver
6) Open a console window and type glxinfo and hope you get a nice display full of info saying that GLX is working fine.
I wouldn't bother trying to use the ati setup tool as this makes really bad setup files, if the default MEPIS one doesn't work try using the good old xf86config to make a new one.
Hope this helps. I was staring to get worried, No OpenGL==No Blender, which would have ment back to Slackware.
So far MEPIS is great, hopefully I'll be able to give something back.

laptop
Posts: 4864
tried this;
removing nvidia-glx
(Reading database ... 105964 files and directories currently installed.)
Removing nvidia-glx ...
dpkg-divert: rename involves overwriting `/usr/X11R6/lib/libGL.so.1' with
different file `/usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa', not allowed
dpkg: error processing nvidia-glx (--remove):
subprocess post-removal script returned error exit status 2
and then a query screen and then this
E: Subprocess /usr/bin/dpkg returned an error code (1)
install ati drivers
dpkg -i --force-overwrite fglrx-glc22_4.3.0-4.7_i386.deb
(Reading database ... 105943 files and directories currently installed.)
Preparing to replace fglrx-glc22 4.3.0-4.7 (using
fglrx-glc22_4.3.0-4.7_i386.deb) ...
Unpacking replacement fglrx-glc22 ...
Setting up fglrx-glc22 (4.3.0-4.7) ...
and surprise, surprise, no glx
glxinfo
name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x21 16 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
0x22 16 dc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None
I've also tried dpkg-divert --remove /usr/X11R6/lib/libGL.so.1.2
and that produces error
dpkg-divert: rename involves overwriting `/usr/X11R6/lib/libGL.so.1' with
different file `/usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa', not allowed
the basic problem is.... how do I get the nvidiaglx uninstalled?
Liz
One last try
Posts: 691
Try this to get rid of the Nvidia GLX
-in Console as root
rm /usr/X11R6/lib/modules/extensions/libglx.so*
cd /usr/lib
rm libGL*
ln -s /usr/X11R6/lib/libGL.a libGL.a
ln -s /usr/X11R6/lib/libGL.so.1.2 libGL.so.1
ln -s /usr/X11R6/lib/libGL.so.1.2 libGL.so.1
ln -s /usr/X11R6/lib/libGL.so.1.2 libGL.so
ln -s /usr/X11R6/lib/libGLU.a libGLU.a
ln -s /usr/X11R6/lib/libGLU.so.1.3 libGL.so.1.3
ln -s /usr/X11R6/lib/libGLU.so.1.3 libGL.so.1
ln -s /usr/X11R6/lib/libGLU.so.1.3 libGL.so
-reinstall the AtI drivers
-As root, or using the Super Users Mode-File Manager
Open the file /etc/X11/XF86Config-4
Check the Section "Modules" and make sure the line Load "glx" exists and it doesn`t have an asterisks(*) in front of it. Check the line Load "dri" you may try placing an asterisk * (ignore line) in front of this line don`t know if it will help or not. Glx and DRI are two different GL methods and if your using glx you don`t need dri. I know with Nvidia which uses glx trying to load both causes conflicts.
Reboot
Then run glxinfo

not yet....
Posts: 4864
tried that, then tried some variations on the linked files
but no change in the end result; still no GLX
same result from glxinfo
check XF86Config-4
change server to "ati" from "radeon"
(make some stupid mistakes, reboot, no xserver, correct stupid mistakes, reboot, xserver back) but still no glx
either, there is something simple I've missed, or the ati server won't support the glx on the laptop
Radeon Mobility M6 LY
Thread has morphed into ATI discussion....
Posts: 17
Looks like this thread has moved away from my initial issue with NVIDIA OpenGL to be ATI centric. Anyone have any insight on the original issue with NVIDIA/OpenGL? As an addendum, the output from glxinfo 'looks' ok to me - not sure what exact pararmeters to look for in this case though. Also, GLXGEARS works fine - just Americas Army so far bombs with the message:
"Could not load OpenGL library
History:
Exiting due to error"
Thanks for any help.
Fixed it - not a MEPIS issue!
Posts: 17
I found out what the problem is, and it's not really related to MEPIS at all. If anyone else is having issues with ArmyOps and OpenGL, check this link from the Americas Army Forum.
Thanks!
Got GLX loading, but seems to use MESA
Posts: 680
After reading these articles and doing a little playing around I've managed to get GLX just about loading with my Radeon 7000, but it seems to be using mesa or something for the rendering, I only get about ~300fps in glxgears and glxinfo gives this message at the beginning:
Xlib: extension "XFree86-DRI" missing on display ":0.0".
Does this matter? It shouldn't need DRI should it, since I'm using GLX? (I have DRI commented out in my XF86Config-4, when uncommented I just get an error about No symbols in libdri.a regardless of whether GLX is commented out or not).
Any help would be greatly appreciated!

Oops submitted too soon!! The
Posts: 17
Oops submitted too soon!! The 'Final Data Point' was that MEPIS had originally set the monitor to use 50-110 hz vertical frequency, when my monitor will indeed support 50-120hz. I have now corrected this, the display looks better (no flicker) but the original problem still exists with OpenGL.