Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Open GL problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
-rem(
n00b
n00b


Joined: 31 Oct 2004
Posts: 30
Location: France, Brest

PostPosted: Sun Oct 31, 2004 5:12 pm    Post subject: Open GL problem Reply with quote

Hi folks,

I've got a problem under gentoo, and it make me mad ! This is not a newbie problem, I know linux very well and tried a lot of stuffs before posting here, including google.

Some applications can't find my open GL librairies. First, this is my hardware configuration :

---------------------------------------------
a7n8x-e deluxe
S-ata Raid 0 2*80Go Hitachi
GeForce FX 5900 Verto
2*256 Mo Corsair LL + 2 swap in round robin with equal priority

My software configuration :

gentoo ( up to date ) + 2.6.8-r10
Nvidia officials drivers 61.11 ( tested with 61.06 too, but unsuccessful too )
Xorg and Fluxbox/Kde ( depends )

------------------------------------------------------

Quake 3 roxxx, more than 500 fps in 1280*1024*32, glxgears scores more than 7000 fps in this resolution, so it works fine. Neverwinter nights run well too. I can run nvidia-settings to configure fsaa & co. nvclock works fine to, and /proc/driver/nvidia/agp/status says that everything is enabled, agp 8x and Iuse the nvidia opengl interface.

Problem : UT2004 can't find OpenGL libraries

I've tried to modify the opengl interface used, in /etc/ld.so.conf and also with opengl-update ( useless in fact, because it just modify /etc/ld.so.conf ) to switch between xorg openGl interface and Nvidia interface. It changes nothing but reduce fps ( by 3 ) in quake 3 when using xorg open Gl interface. I also tried to set LD_LIBRARY_PATH to points to directories which contain my openGl libraries. Still unsuccessful.


:arrow: This is nvclock, everything is allright :

Code:

  rem@Dooku:~$ nvclock -i
NVClock v0.7

Info: Overclocking of GeforceFX hardware is not supported at the moment
-- General info --
Card:           nVidia GeforceFX 5900
PCI id:         0x331
GPU speed:      400.857 MHz
Bustype:        AGP

-- Memory info --
Amount:         128 MB
Type:           128 bit DDR
Speed:          850.500 MHz

-- AGP info --
Status:         Enabled
Rate:           8X
AGP rates:      4X 8X
Fast Writes:    Enabled
SBA:            Enabled

rem@Dooku:~$                             


:arrow: Direct rendering is ok
Code:

rem@Dooku:~$ glxinfo | grep Yes
direct rendering: Yes
rem@Dooku:~$   


:arrow: openGL librairies are installed :
Code:

rem@Dooku:~$ ldd `which glxgears`
        linux-gate.so.1 =>  (0xffffe000)
        libGL.so.1 => /usr/lib/opengl/nvidia/lib/libGL.so.1 (0x40027000)
        libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x4008f000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40097000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400a7000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40176000)
        libm.so.6 => /lib/libm.so.6 (0x401c7000)
        libc.so.6 => /lib/libc.so.6 (0x401e9000)
        libGLcore.so.1 => /usr/lib/opengl/nvidia/lib/libGLcore.so.1 (0x402fb000)
        libnvidia-tls.so.1 => /usr/lib/opengl/nvidia/lib/tls/libnvidia-tls.so.1 (0x409d3000)
        libdl.so.2 => /lib/libdl.so.2 (0x409d5000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
rem@Dooku:~$



:arrow: UT2004 log file when crashes

Code:

rem@Dooku:~$ cat .ut2004/System/UT2004.log
Log: Log file open, Thu Oct 14 20:32:04 2004
Init: Name subsystem initialized
Log: Your locale: [ANSI_X3.4-1968].

Init: Version: 3186 (127.29)
Init: Compiled: Mar  4 2004 03:07:41
Init: Command line:
Init: (This is Linux patch version 3186.0)
Init: Character set: Unicode
Init: Base directory: /data/ut2004_deb/System/
Init: Ini:UT2004.ini   UserIni:User.ini
Init: Build label: UT2004 Build UT2004_Build_[2004-03-03_02.42]
Init: Object subsystem initialized
Warning: Missing Class Class Editor.TransBuffer
Warning: Missing Sound Sound AnnouncerMale2K4.Generic.20_seconds
Log: Initializing OpenGLDrv...
Log: binding libGL.so.1
Critical: Could not load OpenGL library
Exit: Executing UObject::StaticShutdownAfterError
Exit: Executing USDLClient::ShutdownAfterError
Exit: Exiting.
Log: FileManager: Reading 0 GByte 41 MByte 281 KByte 192 Bytes from HD took 11.344282 seconds (1.946406 reading, 9.397876 seeking).
Log: FileManager: 0.000000 seconds spent with misc. duties
Uninitialized: Name subsystem shut down
Uninitialized: Log file closed, Thu Oct 14 20:32:21 2004
rem@Dooku:~$       


:arrow: Locate to find the so called "missing file" :

Code:

rem@Dooku:~$ locate libGL.so.1
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.0.6106
/usr/lib/opengl/xorg-x11/lib/libGL.so.1
/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
/usr/lib/opengl/nvidia/lib/libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.so.1.0.6111
/usr/X11R6/lib/libGL.so.1
rem@Dooku:~$


:arrow: I tried to modify the ut2004 launch script :

Code:

LD_LIBRARY_PATH=.:${UT2004_DATA_PATH}:${LD_LIBRARY_PATH}:/usr/lib/:/usr/lib/opengl/nvidia/lib
export LD_LIBRARY_PATH


So, my first thoughts were that there was a bug with UT2004 and my config. Bu recently, I tried to install xmule, and still the same kind of problem :

Code:

checking for GL/gl.h... no
configure: error: OpenGL libraries not available

!!! ERROR: x11-libs/wxGTK-2.4.2-r2 failed.
!!! Function src_compile, Line 77, Exitcode 1
!!! ./configure failed
!!! If you need support, post the topmost build error, NOT this status message.

root@Dooku:/home/rem#


My first word was "wow"... and my second "f...".

I also tried to set LD_LIBRARY_PATH, GL_LIBRARY etc... but If it has worked, this message would not be here. So, what the f... is this f... problem ??? I don't understand why some programs can't find my openGL libraries although other find it, morevoer, setting envionment variables is useless. Grrr.

Any feedback would be appreciated,

Thanks all, best regards,

Rem
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 655
Location: Bonn

PostPosted: Sun Oct 31, 2004 6:49 pm    Post subject: Reply with quote

hi,

just a shot in the blue..
Since it looks to me that you are missing the GLUT-Files, try:

emerge glut (official actual glut-files, last modified 1997)
or
emerge freeglut (open-source version of the above).

This should install the needed glut-files (includes and libs) into the usual locations.

Glut is some kind of toolkit for creation/interaction with opengl.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
-rem(
n00b
n00b


Joined: 31 Oct 2004
Posts: 30
Location: France, Brest

PostPosted: Sun Oct 31, 2004 8:34 pm    Post subject: Reply with quote

Glut is already installed. I tried to ionstall freeglut, but the compilation failed. I have added it to /etc/portage/pack... but during the make it crashes ( I have uninstalled glut just before ).

Thx for the help.

Rem
Back to top
View user's profile Send private message
-rem(
n00b
n00b


Joined: 31 Oct 2004
Posts: 30
Location: France, Brest

PostPosted: Wed Nov 03, 2004 3:48 pm    Post subject: Reply with quote

:up: up

No one can help ?
Back to top
View user's profile Send private message
sigix
Apprentice
Apprentice


Joined: 25 Jul 2003
Posts: 192

PostPosted: Thu Nov 04, 2004 1:33 am    Post subject: Reply with quote

opengl libraries are installed but
Code:

checking for GL/gl.h... no
configure: error: OpenGL libraries not available.

check whether opengl headers are in
Code:

[rot@sar /usr/include/GL]# ls
amesa.h    gl.h          glut.h        mesa_wgl.h       uglmesa.h     xmesa_x.h
dmesa.h    gl_mangle.h   glxext.h      mglmesa.h        vms_x_fix.h
fxmesa.h   glu.h         glx.h         osmesa.h         wmesa.h
ggimesa.h  glu_mangle.h  glx_mangle.h  svgamesa.h       xmesa.h
glext.h    glutf90.h     internal      uglglutshapes.h  xmesa_xf86.h

I have these on my system
Back to top
View user's profile Send private message
computrius
n00b
n00b


Joined: 19 Oct 2004
Posts: 7

PostPosted: Sun Nov 07, 2004 2:23 am    Post subject: Reply with quote

Code:

computrius@comptop  $ ut2004-demo
Could not load OpenGL library

History:

Exiting due to error


I am having the same problem, after upgrading my kernel to 2.6.9 and nvidia drivers. It worked before, but now it doesnt.
_________________
if 8 * 8 = 64, then one can logically conclude that 64 / 64 = 8.
Back to top
View user's profile Send private message
dentament
n00b
n00b


Joined: 16 Jun 2004
Posts: 74

PostPosted: Sun Nov 07, 2004 3:42 am    Post subject: Reply with quote

same problem here

hp zd7229ea
GeForce FX go 5200

kernel 2.6.7-r14
nvidia-kernel / nvidia-glx 1.0.5336-r4
Back to top
View user's profile Send private message
Benson
Apprentice
Apprentice


Joined: 23 Feb 2004
Posts: 156
Location: Switzerland

PostPosted: Sun Nov 07, 2004 9:34 am    Post subject: Reply with quote

Having the same problem, i searched the forum for a solution. Finally there's a problem with the new 6xxx drivers - can't say if the newest 6629 drivers still have this issue as they were released yesterday and i didn't found the time to test it yet.

So for games like AA, UT2004, Doom3 etc. you first need to do a
Code:
export LD_PRELOAD=/usr/lib/opengl/nvidia/lib/libGL.so.1

and leave the console open, else you won't be able to start the game either!!!

With AA you can place this line in the start-script (have a look in the game-directory /opt/americas-army).

rgds
Benson
Back to top
View user's profile Send private message
dentament
n00b
n00b


Joined: 16 Jun 2004
Posts: 74

PostPosted: Sun Nov 07, 2004 10:45 am    Post subject: Reply with quote

Benson wrote:
Having the same problem, i searched the forum for a solution. Finally there's a problem with the new 6xxx drivers - can't say if the newest 6629 drivers still have this issue as they were released yesterday and i didn't found the time to test it yet.

So for games like AA, UT2004, Doom3 etc. you first need to do a
Code:
export LD_PRELOAD=/usr/lib/opengl/nvidia/lib/libGL.so.1

and leave the console open, else you won't be able to start the game either!!!

With AA you can place this line in the start-script (have a look in the game-directory /opt/americas-army).

rgds
Benson


That fixes the problem, even for me (I have 5336 drivers)
Thanks
Bye
Back to top
View user's profile Send private message
Malak
n00b
n00b


Joined: 17 Jun 2004
Posts: 59

PostPosted: Sun Nov 07, 2004 2:45 pm    Post subject: Reply with quote

I have had similar problems due to installing nvidia drivers from nvidias website and then intalling them using emerge... ive tried to fix all the symlinks in /usr/lib/ by pointing them to the files in /usr/lib/opengl/nviai/lib

enemy territory works perfectly (since i fixed the symlinks)

ut2004-demo, works provided i put the LD_PRELOAD line in my run command (but i would prefer for it to just work without this)

i went mad emerging loads of things last night, including foobillard (opengl pool game), and it wont run at all, even with the LD_PRELOAD command..

Code:
foobillard usage: foobillard [--option [<arg>]]
  options:
--player1 <arg>
     arg=ai|human set player1 ai/human
--player2 <arg>
     arg=ai|human set player2 ai/human
--p1 <arg>
     arg=ai|human set player1 ai/human
--p2 <arg>
     arg=ai|human set player2 ai/human
--name1 <arg>
     set name of player1
--name2 <arg>
     set name of player2
--8ball
     8ball pool game
--9ball
     9ball pool game
.......     other args     ..........
--tourfast <arg>
     arg=1.0..10.0 AI fast motion ratio for tournament
--clothtex <arg>
     arg=on|off for table detail map
--help
     this help
the color <0xrrggbb> means one byte for each red, green, blue

Video mode set failed: X11 driver not configured with OpenGL


.. with the LD_PRELOAD it says exactly the same thing

eek
_________________
No signature for me thanks!
Back to top
View user's profile Send private message
Malak
n00b
n00b


Joined: 17 Jun 2004
Posts: 59

PostPosted: Sun Nov 07, 2004 4:55 pm    Post subject: Reply with quote

agh

Code:
emerge nvidia-glx
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-glx-1.0.6629 to /
x86
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
x86

!!! ERROR: media-video/nvidia-glx-1.0.6629 failed.
!!! Function pkg_setup, Line 48, Exitcode 0
!!! Support for x11-base/xfree is deprecated. Upgrade to x11-base/xorg-x11.
!!! If you need support, post the topmost build error, NOT this status message.


Code:
emerge xorg-x11 -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] x11-base/xfree (from pkg x11-base/xorg-x11-6.8.0-r1)
[ebuild   R   ] x11-base/xorg-x11-6.8.0-r1


.... so i have to remove my x window system, and install a different version of it?
.... i dont want to unintall xfree, install xorg and discover that 500 configurastion files are no longer relevant and that all applications that use x need to be rebuilt...

is there anyway to fix this without messing up everything ive done/install/configured over the past 3 months??
_________________
No signature for me thanks!
Back to top
View user's profile Send private message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Sun Nov 07, 2004 11:49 pm    Post subject: Reply with quote

About the only config file that you'll need to touch is the process of copying /etc/X11/XF86Config to /etc/X11/xorg.conf

However you can use tools such as 'quickpkg' if you are very worried, to make a binary of your xfree install before unmerging it.

(Or you could change the ebuild, your looking for this bit, note the comment)
Code:
# This isn't necessary, true. But its about time people got the idea.
if has_version "x11-base/xfree"
then
      die "Support for x11-base/xfree is deprecated. Upgrade to x11-base/xorg-x11."
fi
Back to top
View user's profile Send private message
Benson
Apprentice
Apprentice


Joined: 23 Feb 2004
Posts: 156
Location: Switzerland

PostPosted: Mon Nov 08, 2004 5:08 pm    Post subject: Reply with quote

cyfred wrote:
About the only config file that you'll need to touch is the process of copying /etc/X11/XF86Config to /etc/X11/xorg.conf


Mh, i think there were 2 issues with some options when using an old xfree config file with x.org - uncommenting these 2 lines solves the problem. Search the forum for migrating to x.org, it's quite painless and x.org is the future!
:wink:

@Malak: I think your error-message from foobillard has nothing to do with the glx-module not having loaded. Looks like a misconfiguration of your x-server...

rgds
Benson
Back to top
View user's profile Send private message
moa333
n00b
n00b


Joined: 22 May 2004
Posts: 45
Location: France

PostPosted: Tue Dec 21, 2004 11:35 am    Post subject: Reply with quote

maybe you nead to recompile sdl-image, sdl-gfx, and libsdl with USE="opengl"??
Back to top
View user's profile Send private message
smileyguy
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2004
Posts: 80

PostPosted: Sun Dec 26, 2004 1:46 pm    Post subject: Reply with quote

I had a similar situation with a Radeon 9800 SE. After upgrading several packages (Xfree to Xorg, glibc, ati-drivers), some GL applications worked fine (gears, blender), and some crashed with the error message "X11 driver not configured with openGL". That error is from the file SDL_x11gl.c, so I rebuilt SDL (the same version that was installed before), and the problem disappeared.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum