Author Topic: Once more: OpenGL Problem  (Read 5561 times)

ChilliConCarne

  • Posts: 3
  • Turrets: +0/-0
Once more: OpenGL Problem
« on: February 01, 2007, 05:22:23 pm »
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:

Code: [Select]

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:
Code: [Select]

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:
Code: [Select]

/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:
Code: [Select]

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

  • Guest
Once more: OpenGL Problem
« Reply #1 on: February 01, 2007, 09:52:49 pm »
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

  • Guest
Once more: OpenGL Problem
« Reply #2 on: February 02, 2007, 05:18:04 pm »
Quote from: "tomek-k"

Besides NVIDIA OpenGL drivers do not use DRI.


hmmm
did I misunderstand glxinfo?

Code: [Select]
direct rendering: Yes
server glx vendor string: NVIDIA Corporation

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Once more: OpenGL Problem
« Reply #3 on: February 02, 2007, 05:41:42 pm »
Quote from: "Caveman"
Quote from: "tomek-k"

Besides NVIDIA OpenGL drivers do not use DRI.


hmmm
did I misunderstand glxinfo?

Code: [Select]
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

  • Guest
Once more: OpenGL Problem
« Reply #4 on: February 02, 2007, 07:05:53 pm »
Quote from: "Odin"
Quote from: "Caveman"
Quote from: "tomek-k"

Besides NVIDIA OpenGL drivers do not use DRI.


hmmm
did I misunderstand glxinfo?

Code: [Select]
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

  • Posts: 3
  • Turrets: +0/-0
Once more: OpenGL Problem
« Reply #5 on: February 02, 2007, 07:55:51 pm »
Hello,
Thx for reply.
Of course, i disabled the default DRI Module in my xorg.conf:

Code: [Select]

...

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:

Code: [Select]

~: 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:
Code: [Select]

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

  • Guest
Once more: OpenGL Problem
« Reply #6 on: February 02, 2007, 08:21:27 pm »
first insert into extension-section
Code: [Select]

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
Code: [Select]

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

and check again.

edit:

Or it just might be that you placed

Code: [Select]

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


into your conf, disabling all direct graphic access .)

tomek-k

  • Guest
Once more: OpenGL Problem
« Reply #7 on: February 02, 2007, 10:42:45 pm »
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: "Odin"
Make a symbolic link for /usr/lib/libGL.so to /usr/local/games/tremulous/libGL.so.1

tomek-k

  • Guest
Once more: OpenGL Problem
« Reply #8 on: February 02, 2007, 10:51:54 pm »
Wait a moment!

Have you installed trem in your home directory?

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

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Once more: OpenGL Problem
« Reply #9 on: February 03, 2007, 12:21:20 am »
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

  • Posts: 3
  • Turrets: +0/-0
Once more: OpenGL Problem
« Reply #10 on: February 03, 2007, 11:03:47 pm »
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

  • Posts: 2412
  • Turrets: +55/-168
Once more: OpenGL Problem
« Reply #11 on: February 03, 2007, 11:54:54 pm »
*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

  • Guest
Once more: OpenGL Problem
« Reply #12 on: February 04, 2007, 02:14:11 pm »
Quote from: "n00b pl0x"
*eh-hem*

I have prepared a poem:

Tomek-k
saves the day.

:D


 :o

Oh f... :D

n00b pl0x

  • Posts: 2412
  • Turrets: +55/-168
Once more: OpenGL Problem
« Reply #13 on: February 04, 2007, 05:34:27 pm »
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

  • Guest
Once more: OpenGL Problem
« Reply #14 on: February 04, 2007, 06:15:52 pm »
It's great! :wink: