Nvidia FX 5200 OpenGL problems with game demo
by Jesse Guardiani · in Torque Game Engine · 11/14/2004 (6:22 pm) · 39 replies
Howdy,
I am a registered user, but I haven't downloaded and *built* Torque on Linux yet. (I built it on Win32 a while back and just haven't gotten around to it on Linux yet.)
With my old i810 graphics chipset under Linux with a 2.6 kernel, I experienced terrain discoloration and too-slow gameplay with the Torque Demo binary. So, since I prefer Gentoo Linux for game development over Win32, I bought a GeForce FX 5200 128MB, installed nvidia-kernel module and nvidia-glx, and switched my OpenGL implementation to 'nvidia' with 'opengl-update nvidia'.
Unfortunately, when I start the Torque Demo binary, I get a popup stating: "Unable to initialize OpenGL. (Error: Could not load OpenGL library)".
Any ideas?
I am a registered user, but I haven't downloaded and *built* Torque on Linux yet. (I built it on Win32 a while back and just haven't gotten around to it on Linux yet.)
With my old i810 graphics chipset under Linux with a 2.6 kernel, I experienced terrain discoloration and too-slow gameplay with the Torque Demo binary. So, since I prefer Gentoo Linux for game development over Win32, I bought a GeForce FX 5200 128MB, installed nvidia-kernel module and nvidia-glx, and switched my OpenGL implementation to 'nvidia' with 'opengl-update nvidia'.
Unfortunately, when I start the Torque Demo binary, I get a popup stating: "Unable to initialize OpenGL. (Error: Could not load OpenGL library)".
Any ideas?
#2
% glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
11/14/2004 (7:10 pm)
I believe the below output effectively answers both of your questions:% glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
#3
glxinfo indicates direct rendering is present.
11/14/2004 (7:37 pm)
Exact same problem here, only I have downloaded and built torque on linux gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)glxinfo indicates direct rendering is present.
#4
11/15/2004 (2:23 am)
Jesse: Do you have the dri stuff enabled in your config? If so it can cause problems and needs to removed/comment out. As a test I have just installed the latest driver (6629) using nvidia's installer and i don't seem to be getting that problem on an FX5500 (am using Mandrake 10.1 though). Also do any other GL program work? or is it just torque having the problem?
#5
* sys-libs/glibc
Latest version available: 2.3.4.20040808-r1
Latest version installed: 2.3.4.20040808-r1
Size of downloaded files: 15,381 kB
Homepage: http://sources.redhat.com/glibc/
Description: GNU libc6 (also called glibc2) C library
License: LGPL-2
* x11-base/xorg-x11
Latest version available: 6.8.0-r1
Latest version installed: 6.8.0-r1
Size of downloaded files: 72,166 kB
Homepage: http://freedesktop.org/XOrg
Description: An X11 implementation maintained by the X.Org Foundation
* media-video/nvidia-glx
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 16,116 kB
Homepage: http://www.nvidia.com/
Description: NVIDIA X11 driver and GLX libraries
License: NVIDIA
* media-video/nvidia-kernel
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 16,116 kB
Homepage: http://www.nvidia.com/
Description: Linux kernel module for the NVIDIA X11 driver
License: NVIDIA
* media-video/nvidia-settings
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 798 kB
Homepage: http://www.nvidia.com/
Description: NVIDIA Linux X11 Settings Utility
License: GPL-2
I don't see anything interesting in my xorg log file either. Couple of warnings about one of my display resolutions being too high and a warning about my wacom tablet not being present, but otherwise it's clean.
Blender works fine, so - yes - other apps work.
11/15/2004 (4:46 am)
Yes, I did have the DRI stuff enabled. No, removing it didn't help, but thanks for pointing that out anyway. I'm still getting the exact same error. Here's some additional system info too:* sys-libs/glibc
Latest version available: 2.3.4.20040808-r1
Latest version installed: 2.3.4.20040808-r1
Size of downloaded files: 15,381 kB
Homepage: http://sources.redhat.com/glibc/
Description: GNU libc6 (also called glibc2) C library
License: LGPL-2
* x11-base/xorg-x11
Latest version available: 6.8.0-r1
Latest version installed: 6.8.0-r1
Size of downloaded files: 72,166 kB
Homepage: http://freedesktop.org/XOrg
Description: An X11 implementation maintained by the X.Org Foundation
* media-video/nvidia-glx
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 16,116 kB
Homepage: http://www.nvidia.com/
Description: NVIDIA X11 driver and GLX libraries
License: NVIDIA
* media-video/nvidia-kernel
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 16,116 kB
Homepage: http://www.nvidia.com/
Description: Linux kernel module for the NVIDIA X11 driver
License: NVIDIA
* media-video/nvidia-settings
Latest version available: 1.0.6629
Latest version installed: 1.0.6629
Size of downloaded files: 798 kB
Homepage: http://www.nvidia.com/
Description: NVIDIA Linux X11 Settings Utility
License: GPL-2
I don't see anything interesting in my xorg log file either. Couple of warnings about one of my display resolutions being too high and a warning about my wacom tablet not being present, but otherwise it's clean.
Blender works fine, so - yes - other apps work.
#6
11/15/2004 (5:00 am)
Try doing find / -name "libGL.*" as root to see if you have multiple libGL files which torque may get confused about.
#7
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.so.1.0.6111
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.la
/usr/lib/libGL.so
/usr/lib/libGL.la
/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
/usr/lib/opengl/xorg-x11/lib/libGL.la
/usr/lib/opengl/xorg-x11/lib/libGL.a
/usr/lib/opengl/xorg-x11/lib/libGL.so
/usr/lib/opengl/xorg-x11/lib/libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
/usr/lib/opengl/nvidia/lib/libGL.so
/usr/lib/opengl/nvidia/lib/libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.la
/usr/lib/libGL.so.1
/usr/X11R6/lib/libGL.so.1
/usr/portage/media-video/nvidia-glx/files/libGL.la.2
/usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
find: /proc/26635/task: No such file or directory
/ufs2/usr/X11R6/lib/X11/doc/libGL.TXT
/ufs2/usr/X11R6/lib/libGL.a
/ufs2/usr/X11R6/lib/libGL.so
/ufs2/usr/X11R6/lib/libGL.so.1
Exit 1
What do you think? Is that enough to confuse it?
11/15/2004 (6:32 am)
# find / -name "libGL.*"/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.so.1.0.6111
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.la
/usr/lib/libGL.so
/usr/lib/libGL.la
/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
/usr/lib/opengl/xorg-x11/lib/libGL.la
/usr/lib/opengl/xorg-x11/lib/libGL.a
/usr/lib/opengl/xorg-x11/lib/libGL.so
/usr/lib/opengl/xorg-x11/lib/libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
/usr/lib/opengl/nvidia/lib/libGL.so
/usr/lib/opengl/nvidia/lib/libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.la
/usr/lib/libGL.so.1
/usr/X11R6/lib/libGL.so.1
/usr/portage/media-video/nvidia-glx/files/libGL.la.2
/usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
find: /proc/26635/task: No such file or directory
/ufs2/usr/X11R6/lib/X11/doc/libGL.TXT
/ufs2/usr/X11R6/lib/libGL.a
/ufs2/usr/X11R6/lib/libGL.so
/ufs2/usr/X11R6/lib/libGL.so.1
Exit 1
What do you think? Is that enough to confuse it?
#8
11/15/2004 (6:40 am)
Are the ones in /usr/X11R6/lib and /usr/lib symlinks to /usr/lib/opengl/xorg-x11/lib/?
#9
find: /proc/26635/task: No such file or directory
-rwxr-xr-x 1 root root 423832 Jul 27 11:33 /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.so.1.0.6111
-rwxr-xr-x 1 root root 652 Jul 27 11:33 /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.la
lrwxr-xr-x 1 root root 44 Nov 14 15:57 /usr/lib/libGL.so -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
-rw-r--r-- 1 root root 739 Nov 14 15:57 /usr/lib/libGL.la
-rwxr-xr-x 1 root root 601375 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
-rw-r--r-- 1 root root 780 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.la
-rw-r--r-- 1 root root 675828 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.a
lrwxrwxrwx 1 root root 12 Sep 20 14:01 /usr/lib/opengl/xorg-x11/lib/libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 Sep 20 14:01 /usr/lib/opengl/xorg-x11/lib/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 442592 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
lrwxrwxrwx 1 root root 17 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.6629
lrwxrwxrwx 1 root root 17 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.6629
-rw-r--r-- 1 root root 739 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.la
lrwxr-xr-x 1 root root 44 Nov 14 15:57 /usr/lib/libGL.so.1 -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
lrwxr-xr-x 1 root root 12 Sep 20 14:01 /usr/X11R6/lib/libGL.so.1 -> libMesaGL.so
-rw-r--r-- 1 root root 751 Feb 13 2004 /usr/portage/media-video/nvidia-glx/files/libGL.la.2
-rw-r--r-- 1 root root 777 Feb 27 2003 /usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
-r--r--r-- 1 root root 6920 Dec 6 2003 /ufs2/usr/X11R6/lib/X11/doc/libGL.TXT
-rw-r--r-- 1 root root 602994 Dec 6 2003 /ufs2/usr/X11R6/lib/libGL.a
lrwxrwxrwx 1 root root 10 May 20 03:10 /ufs2/usr/X11R6/lib/libGL.so -> libGL.so.1
-rwxr-xr-x 1 root root 537572 Dec 6 2003 /ufs2/usr/X11R6/lib/libGL.so.1
11/15/2004 (6:58 am)
# find / -name "libGL.*" | xargs -n 1 -r ls -alfind: /proc/26635/task: No such file or directory
-rwxr-xr-x 1 root root 423832 Jul 27 11:33 /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.so.1.0.6111
-rwxr-xr-x 1 root root 652 Jul 27 11:33 /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/lib/libGL.la
lrwxr-xr-x 1 root root 44 Nov 14 15:57 /usr/lib/libGL.so -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
-rw-r--r-- 1 root root 739 Nov 14 15:57 /usr/lib/libGL.la
-rwxr-xr-x 1 root root 601375 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
-rw-r--r-- 1 root root 780 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.la
-rw-r--r-- 1 root root 675828 Sep 20 14:00 /usr/lib/opengl/xorg-x11/lib/libGL.a
lrwxrwxrwx 1 root root 12 Sep 20 14:01 /usr/lib/opengl/xorg-x11/lib/libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 Sep 20 14:01 /usr/lib/opengl/xorg-x11/lib/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 442592 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
lrwxrwxrwx 1 root root 17 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.6629
lrwxrwxrwx 1 root root 17 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.6629
-rw-r--r-- 1 root root 739 Nov 12 23:31 /usr/lib/opengl/nvidia/lib/libGL.la
lrwxr-xr-x 1 root root 44 Nov 14 15:57 /usr/lib/libGL.so.1 -> /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629
lrwxr-xr-x 1 root root 12 Sep 20 14:01 /usr/X11R6/lib/libGL.so.1 -> libMesaGL.so
-rw-r--r-- 1 root root 751 Feb 13 2004 /usr/portage/media-video/nvidia-glx/files/libGL.la.2
-rw-r--r-- 1 root root 777 Feb 27 2003 /usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
-r--r--r-- 1 root root 6920 Dec 6 2003 /ufs2/usr/X11R6/lib/X11/doc/libGL.TXT
-rw-r--r-- 1 root root 602994 Dec 6 2003 /ufs2/usr/X11R6/lib/libGL.a
lrwxrwxrwx 1 root root 10 May 20 03:10 /ufs2/usr/X11R6/lib/libGL.so -> libGL.so.1
-rwxr-xr-x 1 root root 537572 Dec 6 2003 /ufs2/usr/X11R6/lib/libGL.so.1
#10
rename this symlink /usr/X11R6/lib/libGL.so.1 to whatever and try to create a new one point /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629 instead. Restart X and see if that helps.
11/15/2004 (7:07 am)
This one might be a problem /usr/X11R6/lib/libGL.so.1 -> libMesaGL.sorename this symlink /usr/X11R6/lib/libGL.so.1 to whatever and try to create a new one point /usr/lib/opengl/nvidia/lib/libGL.so.1.0.6629 instead. Restart X and see if that helps.
#11
stuck. other apps work, just nothing based on torque. I have tried runnin the marble madness and think tanks demos too, same problem with them.
11/15/2004 (3:15 pm)
Ok, I have tried that, but no dice im afraid.stuck. other apps work, just nothing based on torque. I have tried runnin the marble madness and think tanks demos too, same problem with them.
#12
11/15/2004 (3:54 pm)
You might be in luck i tried this in Linux at work before i left today and am getting the same error message. Some popup with a white background saying it can't initialize opengl. Odd thing is it used to work. This was on parhelia card though so who knows at this point.
#13
heres some output:
bash-2.05b# find / -name "libGL.*" | xargs -n 1 -r ls -al
find: /proc/5398/task: No such file or directory
lrwxrwxrwx 1 root root 17 Nov 17 00:33 /usr/lib/libGL.so.1 -> libGL.so.1.0.6629
-rwxr-xr-x 1 root root 442592 Nov 17 00:33 /usr/lib/libGL.so.1.0.6629
-rw-r--r-- 1 root root 653 Nov 17 00:33 /usr/lib/libGL.la
lrwxrwxrwx 1 root root 10 Nov 17 00:33 /usr/lib/libGL.so -> libGL.so.1
-rw-r--r-- 1 root root 777 Feb 28 2003 /usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
-rw-r--r-- 1 root root 751 Feb 14 2004 /usr/portage/media-video/nvidia-glx/files/libGL.la.2
argh, any ideas?
11/15/2004 (3:55 pm)
Just tried updating to 6629 from 6111. I used nvidias installer as gentoo wasnt up to date. still no go.heres some output:
bash-2.05b# find / -name "libGL.*" | xargs -n 1 -r ls -al
find: /proc/5398/task: No such file or directory
lrwxrwxrwx 1 root root 17 Nov 17 00:33 /usr/lib/libGL.so.1 -> libGL.so.1.0.6629
-rwxr-xr-x 1 root root 442592 Nov 17 00:33 /usr/lib/libGL.so.1.0.6629
-rw-r--r-- 1 root root 653 Nov 17 00:33 /usr/lib/libGL.la
lrwxrwxrwx 1 root root 10 Nov 17 00:33 /usr/lib/libGL.so -> libGL.so.1
-rw-r--r-- 1 root root 777 Feb 28 2003 /usr/portage/x11-base/xfree/files/4.3.0/lib/libGL.la
-rw-r--r-- 1 root root 751 Feb 14 2004 /usr/portage/media-video/nvidia-glx/files/libGL.la.2
argh, any ideas?
#14
no ideas though, as its beyond me.
11/15/2004 (3:57 pm)
Yep Benoit, thats the exact problem, the white popup then exit. i have looked in the engine code and it seems to be borking on loading the libGL.so or libGL.so.1no ideas though, as its beyond me.
#15
Btw, jesse, did it work out on your end?
11/15/2004 (4:00 pm)
Unfortunately my work schedule is pretty tight right now, will try and take stab at this when i can sometime later this week hopefully.Btw, jesse, did it work out on your end?
#16
some ideas on where to start wouldnt go astray ;)
11/15/2004 (4:02 pm)
All good buddy, If I fix it, i'll let you know (in this post)some ideas on where to start wouldnt go astray ;)
#17
11/15/2004 (5:48 pm)
No clue but i did find another bug which was causing a segfault with certain versions of gcc (see SDK Bug forum for more details).
#18
This is torque script code that is failing, right? Is it just a logic issue, or is it an ABI issue or something?
11/15/2004 (6:40 pm)
Benoit: No, changing the /usr/X11R6/lib/libGL.so.1 symlink didn't help.This is torque script code that is failing, right? Is it just a logic issue, or is it an ABI issue or something?
#19
Jesse: Don't think its script related this will require some further digging into though, like i said before will probably happen later this week assuming my workload doesn't increase.
11/15/2004 (6:55 pm)
Well i'm off to bed, enough coding for today. Jesse: Don't think its script related this will require some further digging into though, like i said before will probably happen later this week assuming my workload doesn't increase.
#20
11/16/2004 (2:02 pm)
Ran some quick tests at work today and the problem seems to be in SDL_GL_LoadLibrary in the UNIX platform code (GLDllInit i beleive). Don't know why yet. Can you recompile in debug mode and verify you are getting the same issue?
Torque Owner Benoit Touchette