News:

Come Chat with us live! Learn how HERE!

Main Menu

Once more: OpenGL Problem

Started by ChilliConCarne, February 01, 2007, 05:22:23 PM

ChilliConCarne

Hello,
I'm running Slackware 11 on a AMD Athlon 1800+, Nvidia GeForceTi4200 System. I've installed the latest Nvidia drivers. Glxgears is working and DRI is enabled.

When i start tremulous i get the following:


tremulous 1.1.0 linux-x86 Feb 28 2006
----- FS_Startup -----
Current search path:
/home/boris/.tremulous/base
/home/boris/Programme/tremulous/base/vms-1.1.0.pk3 (4 files)
/home/boris/Programme/tremulous/base/map-uncreation-1.1.0.pk3 (110 files)
/home/boris/Programme/tremulous/base/map-tremor-1.1.0.pk3 (45 files)
/home/boris/Programme/tremulous/base/map-transit-1.1.0.pk3 (135 files)
/home/boris/Programme/tremulous/base/map-niveus-11.0.pk3 (134 files)
/home/boris/Programme/tremulous/base/map-nexus6-1.1.0.pk3 (151 files)
/home/boris/Programme/tremulous/base/map-karith-1.1.0.pk3 (118 files)
/home/boris/Programme/tremulous/base/map-atcs-1.1.0.pk3 (87 files)
/home/boris/Programme/tremulous/base/map-arachnid2-1.1.0.pk3 (67 files)
/home/boris/Programme/tremulous/base/data-1.1.0.pk3 (1229 files)
/home/boris/Programme/tremulous/base

----------------------
2080 files in pk3 files
execing default.cfg
couldn't exec autogen.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----

------- Input Initialization -------
Joystick is not active.
------------------------------------
...loading libGL.so.1:
Calling SDL_Init(SDL_INIT_VIDEO)...
SDL_Init(SDL_INIT_VIDEO) passed.
QGL_Init: Can't load libGL.so.1 from /etc/ld.so.conf or current dir:
failed
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem


Especially look at:

QGL_Init: Can't load libGL.so.1 from /etc/ld.so.conf or current dir:
failed


The Content of my /etc/lib.so.1 is:

/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib


But i haven't a libGL.so.1 file in these folders.
So i searched a "libGL"-like file and set an symbolic link in my /usr/local/lib folder, because it seems that in /usr/lib is the file tremulous needs:

lrwxrwxrwx 1 root root 26 2007-02-01 17:13 libGL.so.1 -> /usr/lib/libGL.so.1.0.7184


But i still get the same error.


Does someone know what i'm doing wrong?

tomek-k

hmm... weird.
The libGL.so.* should be placed in /usr/lib and it should work w/o any other symlinks.

Besides NVIDIA OpenGL drivers do not use DRI.

At first upgrade your gfx drivers - you seem to have the 1.0-7184 version. The newest is 1.0-9746.

Caveman

Quote from: tomek-k
Besides NVIDIA OpenGL drivers do not use DRI.

hmmm
did I misunderstand glxinfo?

direct rendering: Yes
server glx vendor string: NVIDIA Corporation

Odin

Quote from: Caveman
Quote from: tomek-k
Besides NVIDIA OpenGL drivers do not use DRI.

hmmm
did I misunderstand glxinfo?

direct rendering: Yes
server glx vendor string: NVIDIA Corporation
That may be, but he means that you do not have to include a DRI section in your xorg.conf, nor do you have to enable it with a "Load DRI" line.

tomek-k

Quote from: Odin
Quote from: Caveman
Quote from: tomek-k
Besides NVIDIA OpenGL drivers do not use DRI.

hmmm
did I misunderstand glxinfo?

direct rendering: Yes
server glx vendor string: NVIDIA Corporation
That may be, but he means that you do not have to include a DRI section in your xorg.conf, nor do you have to enable it with a "Load DRI" line.

Yeah - DRI stands for "Direct Rendering Infrastructure". 'Direct rendering' is a more general term

ChilliConCarne

Hello,
Thx for reply.
Of course, i disabled the default DRI Module in my xorg.conf:


...

Section "Module"
Load  "glx"
Load  "extmod"
Load  "xtrap"
Load  "record"
Load  "dbe"
#Load  "dri"
Load  "freetype"
Load  "type1"
EndSection

...

Section "Device"
       ### Available Driver options are:-
       ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
       ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
       ### [arg]: arg optional
       #Option     "SWcursor"           # [<bool>]
       #Option     "HWcursor"           # [<bool>]
       #Option     "NoAccel"             # [<bool>]
       #Option     "ShadowFB"           # [<bool>]
       #Option     "UseFBDev"           # [<bool>]
       #Option     "Rotate"             # [<str>]
       #Option     "VideoKey"           # <i>
       #Option     "FlatPanel"           # [<bool>]
       #Option     "FPDither"           # [<bool>]
       #Option     "CrtcNumber"         # <i>
       #Option     "FPScale"             # [<bool>]
       #Option     "FPTweak"             # <i>
Identifier  "Card0"
Driver      "nvidia"
VendorName  "nVidia Corporation"
BoardName   "NV25 [GeForce4 Ti 4200]"
BusID       "PCI:1:0:0"
EndSection

...

#Section "DRI"
# Mode 0666
#EndSection


The libGL.so.* is in my /usr/lib/ folder:


~: ls -l /usr/lib/libG*
-rw-r--r-- 1 root root     653 2007-01-30 20:58 /usr/lib/libGL.la
lrwxrwxrwx 1 root root      10 2007-01-30 20:58 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root      17 2007-01-30 20:58 /usr/lib/libGL.so.1 -> libGL.so.1.0.7184
-rwxr-xr-x 1 root root  488960 2007-01-30 20:58 /usr/lib/libGL.so.1.0.7184
lrwxrwxrwx 1 root root      21 2007-01-30 20:58 /usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.7184
-rwxr-xr-x 1 root root 7626156 2007-01-30 20:58 /usr/lib/libGLcore.so.1.0.7184



The confusing is, that the error message doesn't say what kind of error happend. I only get:

QGL_Init: Can't load libGL.so.1 from /etc/ld.so.conf or current dir:
failed


EDIT:
Now i've installed the latest driver for my System:
NVIDIA-Linux-x86-1.0-9631-pkg1.run

The 97xx drivers doesn't support my GPU anymore.
I've added by the way in my ld.so.conf the /usr/lib folder and reloaded it as root  with ldconfig.

But i still get the same error :( .


BTW: I use Kernel 2.4.xx

Caveman

first insert into extension-section

Option         "XFree86-VidModeExtension" "enable"

then please check if X does have any 3d support endabled with glxinfo and glxgears.

then try this in the screen-section

   Option         "NvAGP" "2"                                                                                                                                                      
   Option         "RenderAccel" "false"                                                                                                                                            

and check again.

edit:

Or it just might be that you placed


          SubSection "extmod"
             Option  "omit XFree86-DGA"
          EndSubSection


into your conf, disabling all direct graphic access .)

tomek-k

hmm.. I can remember that there was some solution on the forum for problems with finding gl libs by trem (I had such problem with my old gfx card).
It was exporting the library path before running trem.

Some solutions:

in console run:
export LD_PRELOAD=/usr/lib/libGL.so.1
and then run tremulous

or:

Quote from: OdinMake a symbolic link for /usr/lib/libGL.so to /usr/local/games/tremulous/libGL.so.1

tomek-k

Wait a moment!

Have you installed trem in your home directory?

Maby this is the problem (but I'm just guessing)...

David

You can install it anywhere, it makes no difference.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

ChilliConCarne

Quote from: tomek-k
in console run:
export LD_PRELOAD=/usr/lib/libGL.so.1
and then run tremulous

THAT was the solution  :D !!!
THX!!!

Thx for help to all  :wink: .

n00b pl0x

*eh-hem*

I have prepared a poem:

Tomek-k
saves the day.

:D
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

tomek-k

Quote from: n00b pl0x*eh-hem*

I have prepared a poem:

Tomek-k
saves the day.

:D

:o

Oh f... :D

n00b pl0x

best poem youve ever read right? i mean it even rhymes!
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

tomek-k