Re: [Flightgear-devel] Re: Error compiling FlightGear

2005-05-03 Thread Ampere K. Hardraade
On May 3, 2005 02:39 am, Melchior FRANZ wrote:
> > WARNING: ssgSGIHeader::: Failed to open
> > '/usr/local/FlightGear/share/FlightGear/Textures/Sky/cl_cumulus.rgb' for
> > reading.
>
> So? What's with theses files? Are you sure you have these, at this weird
> path? But anyway ...
Those files aren't there.  As for the directory, yes, it is correct.  You have 
no idea how much time I spent on poking around until I found out that the 
base-package should reside in there (as opposed to what the documentry said).   
=P
I think it may have to do with the fact that I placed FlightGear 
under /usr/local/FlightGear instead of /usr/local.

> > X Error of failed request:  GLXUnsupportedPrivateRequest
>
> It is quite likely that the X server dynamically links against the wrong
> libGL, just like fgfs. So I'd stay with the easier debugging target now,
> and that's fgfs. Also, I don't know if the X server even needs OpenGL. I
> doesn't have to run in HW accelerated mode (Xrender extension) to run 3D
> apps with HW acceleration. (Disclaimer: I'm no X expert. :-)
Okay.

> I suppose that there's still an old libGL around that's used instead of the
> new one. Try this:
>
>$ ldd `which fgfs`
>
> and check if all the relevant libraries do really use what libs you think
> it *should* use. I have this here:
>
>...
>libglut.so.3 => /usr/X11R6/lib/libglut.so.3 (0x4005a000)
>libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x40082000)
>libGL.so.1 => /usr/lib/libGL.so.1 (0x40114000)
>...
>libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x40537000)
>libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0x40c28000)
>
> and I'm happy with it. Running strace again and checking the lib paths
> is also a good idea.
Obviously, I don't have the libnvidia-tls.so.1 symlink.  Other than that, 
everything else is similar to your's except libGLcore.so.1 -- it's not even 
listed.

As for strace, FlightGear is looking at everywhere for libGL.so except in the 
right directory.  I don't get it. =/
I am going to recompile FlightGear again tomorrow morning.



Ampere

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: Error compiling FlightGear

2005-05-02 Thread Ampere K. Hardraade
On May 2, 2005 04:31 pm, Melchior FRANZ wrote:
> My favorite "strace" could give you some hint in either case:
>
> A)   $ strace -fF -eopen glxinfo 2>&1|tee /tmp/strace.log
>
> B)   $ strace -fF -eopen ./configure 2>&1|tee /tmp/strace.log
>
> If you search through that log file, you'll see *where* and *what* either
> program searches, and why it doesn't find what it searches. Especially
> "/libopengl" would be interesting.

Interesting.  It seems configure is searching for libGLcore.so and 
libGL.core.a in /usr/X11R6/lib and other directories, but 
not /usr/X11R6/lib/modules-dri-trunk where the modules are actually in.

[pid 10686] open("/usr/X11R6/lib/libGL.so", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10686] open("/usr/X11R6/lib/libGL.a", O_RDONLY) = 13
[pid 10686] open("/usr/X11R6/lib/libGL.a", O_RDONLY) = 14
[pid 10686] open("/usr/X11R6/lib/libGL.a", O_RDONLY) = 8
[pid 10703] open("/usr/X11R6/lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/usr/X11R6/lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/usr/local//lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No 
such file or directory)
[pid 10703] open("/usr/local//lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/usr/lib/gcc-lib/i486-linux/3.3.5/libGLcore.so", O_RDONLY) = 
-1 ENOENT (No such file or directory)
[pid 10703] open("/usr/lib/gcc-lib/i486-linux/3.3.5/libGLcore.a", O_RDONLY) = 
-1 ENOENT (No such file or directory)
[pid 10703] open("/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libGLcore.so", 
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 10703] open("/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libGLcore.a", 
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 10703] open("/usr/bin/../lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No 
such file or directory)
[pid 10703] open("/usr/bin/../lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/usr/i386-linux/lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No 
such file or directory)
[pid 10703] open("/usr/i386-linux/lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No 
such file or directory)
[pid 10703] open("/usr/local/lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/usr/local/lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such 
file or directory)
[pid 10703] open("/lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No such file or 
directory)
[pid 10703] open("/lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such file or 
directory)
[pid 10703] open("/usr/lib/libGLcore.so", O_RDONLY) = -1 ENOENT (No such file 
or directory)
[pid 10703] open("/usr/lib/libGLcore.a", O_RDONLY) = -1 ENOENT (No such file 
or directory)
...
...

Do you think adding /usr/X11R6/lib/modules-dri-trunk to /etc/ld.so.conf will 
fix the problem?

Ampere

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: Error compiling FlightGear

2005-05-02 Thread Ampere K. Hardraade
On May 2, 2005 04:41 pm, Melchior FRANZ wrote:
> This does indeed look ugly. I assume that no 3d apps are running HW
> accelerated?
I don't really know.  glxinfo says direct rendering: yes.  Xorg.0.log also 
reports direct rendering is enabled.  Enemy Territory also runs, although it 
is virtually unplayable just like the days when I was using XFree.  All these 
evidences are telling me that applications are using hardware acceleration, 
but I have a feeling that applications are still relying on software 
rendering.

> I still wonder, though, how fgfs' "configure" could run through without
> complaint. You should also clean the source trees if you haven't already
> (make clean; rm -rf autom4te.cache) and configure again.
Configure returned no problem, but FlightGear still failed to compile.  Same 
errors.

Ampere

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Re: Error compiling FlightGear

2005-05-02 Thread Ampere K. Hardraade
On May 2, 2005 03:39 am, Melchior FRANZ wrote:
> Oh. freeglut and something that looks like opengl is already there, but the
> commend in brackets looks suspicious:
>
>   xlibmesa-gl4.3.0.dfsg.1-1 Mesa 3D graphics library [XFree86]
>
> For XFree86? But you are running Xorg's X11R6.8.* now? Maybe you need a
> different [Xorg] version of these packages?
>
> m.

I now got the Xorg versions of mesa from ubuntu repostory.

ii  xlibmesa-dev   6.8.2-10   X.Org Mesa development libraries transitiona
ii  xlibmesa-dri   6.8.2-10   Mesa 3D graphics library modules [X.Org]
ii  xlibmesa-gl6.8.2-10   Mesa 3D graphics library [X.Org]
ii  xlibmesa-gl-de 6.8.2-10   Mesa 3D graphics library development files [
ii  xlibmesa-gl1-d 2005.02.08-1   Mesa 3D graphics library [DRI trunk]
ii  xlibmesa-glu   6.8.2-10   Mesa OpenGL utility library [X.Org]
ii  xlibmesa-glu-d 6.8.2-10   Mesa OpenGL utility library development file

They didn't make any different.  I'm still getting the same errors when I am 
trying to compile FlightGear.



Ampere

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d