Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-08-02 Thread AJ MacLeod
On Sunday 31 July 2005 11:12, Paul Surgeon wrote:
 SimGear WILL NOT compile with nVidia 6629 headers (like it used to).
 I updated to 7667 OpenGL headers and it compiles now.

I should perhaps mention here for those not keen on updating to the newer 
nvidia drivers yet that SimGear CVS (on 1st August 2005) _does_ compile here 
on nVidia 6629 and runs fine, so it's worth trying...

AJ

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-08-02 Thread Andy Ross
A J MacLeod wrote:
 I should perhaps mention here for those not keen on updating to the
 newer nvidia drivers yet that SimGear CVS (on 1st August 2005)
 _does_ compile here on nVidia 6629 and runs fine, so it's worth
 trying...

You might not have the NVIDIA headers installed.  Check
/usr/include/GL/gl.h to see if it has an NVIDIA copyright at the top
or an x.org one.  I think some of the non-NVIDIA binary distributions
of the driver include only the libraries and X server extension, and
not the development stuff.

For their own reasons, NVIDIA's drivers want to install special
versions of the OpenGL headers that contain constants for NV_*
extensions which aren't defined in headers from other vendors
(Mesa/x.org, ATI, etc...).  This would be fine, but sometimes the
NVIDIA headers end up being a little behind on *standard* extensions
that are required for some software to compile.

FWIW, I think this is silly.  The driver release is for users, who
don't care about header versions.  People who do care about header
declarations and funny extensions are called developers, and are
more than capable of going to nvidia.com and downloading headers
themselves.

Andy

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-08-02 Thread AJ MacLeod
On Tuesday 02 August 2005 18:30, Andy Ross wrote:
 You might not have the NVIDIA headers installed.  Check
 /usr/include/GL/gl.h to see if it has an NVIDIA copyright at the top
 or an x.org one.  I think some of the non-NVIDIA binary distributions
 of the driver include only the libraries and X server extension, and
 not the development stuff.

I'm using nvidia's headers all right...

From /usr/include/GL/gl.h

/*
** Copyright 1998-2002, NVIDIA Corporation.
** All Rights Reserved.
**

 FWIW, I think this is silly.  The driver release is for users, who
 don't care about header versions.

I dare say... the fact the drivers are closed source is the bit that I really 
take issue with :-)

Cheers,

AJ

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-08-02 Thread Paul Surgeon
On Tuesday, 2 August 2005 21:25, AJ MacLeod wrote:
 I'm using nvidia's headers all right...

 From /usr/include/GL/gl.h


A while back I found that when the nVidia installer did its nut I had two 
versions of GL files.
One set in /usr/include/GL and one in /usr/X11R6/include.
One was nVidia and the other was the original (Mesa ?) headers.

Now I symlink /usr/include/GL to /usr/X11R6/includeGL so that I only have one 
copy on my system. It caused me much compilation grief before until I did 
this. Maybe it was just a bad installer and has since been fixed.

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Paul Surgeon
On Saturday, 30 July 2005 23:57, Paul Surgeon wrote:
 There is still a problem.

 If I roll back extensions.hxx and RenderTexture.cpp then I can compile
 SimGear.
 I'll try figure out what's causing it but I'm not very strong at C or C++

 Paul


GLXPbufferSGIX and GLXPbuffer are not defined anywhere in my nVidia GL headers 
although they are used throughout the GL headers!
I've checked Mesa - same thing.

The following lines in extensions.hxx cause a problem because GLXPbufferSGIX 
is not defined.

#ifndef GLXPbuffer
#define GLXPbuffer GLXPbufferSGIX
#endif

That is why I get a :
../../simgear/screen/extensions.hxx:441: error: ISO C++ forbids declaration of 
`GLXPbufferSGIX' with no type

This is confusing.
Are GLXPbuffer and GLXPbufferSGIX both supposed to be programmer defined?

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Erik Hofman

Paul Surgeon wrote:

GLXPbufferSGIX and GLXPbuffer are not defined anywhere in my nVidia GL headers 
although they are used throughout the GL headers!

I've checked Mesa - same thing.

The following lines in extensions.hxx cause a problem because GLXPbufferSGIX 
is not defined.


#ifndef GLXPbuffer
#define GLXPbuffer GLXPbufferSGIX
#endif


Ok, this is be fixed in CVS now.


This is confusing.
Are GLXPbuffer and GLXPbufferSGIX both supposed to be programmer defined?


PBuffers once was *the*way to get accelerated support for texture 
rendering. It has been superseded by a number of other extensions of 
which the official RenderTexture extension is the preferred way now. 
Unfortunately our implementation doesn't have support for that one (yet).


Erik


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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Richard Harke
On Sun July 31 2005 01:13, Paul Surgeon wrote:
 On Saturday, 30 July 2005 23:57, Paul Surgeon wrote:
  There is still a problem.
 
  If I roll back extensions.hxx and RenderTexture.cpp then I can compile
  SimGear.
  I'll try figure out what's causing it but I'm not very strong at C or C++
 
  Paul

 GLXPbufferSGIX and GLXPbuffer are not defined anywhere in my nVidia GL
 headers although they are used throughout the GL headers!
 I've checked Mesa - same thing.

 The following lines in extensions.hxx cause a problem because
 GLXPbufferSGIX is not defined.

 #ifndef GLXPbuffer
 #define GLXPbuffer GLXPbufferSGIX
 #endif

 That is why I get a :
 ../../simgear/screen/extensions.hxx:441: error: ISO C++ forbids declaration
 of `GLXPbufferSGIX' with no type

 This is confusing.
 Are GLXPbuffer and GLXPbufferSGIX both supposed to be programmer defined?

On my system, I find that both are defined in GL/glxproto.h
I have a Debian testing system and I run Nvidia. I don't think
this file is from Nvidia, however, but I don't know the exact package.
Apparently belongs to some part of glx

Richard Harke

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Paul Surgeon
On Sunday, 31 July 2005 10:50, Erik Hofman wrote:
 Ok, this is be fixed in CVS now.

Well almost fixed  :-)
Using a clean SG checkout (extensions.hxx version 1.24) :

In file included from ../../simgear/scene/sky/bbcache.hxx:29,
 from ../../simgear/scene/sky/newcloud.hxx:31,
 from visual_enviro.cxx:35:
../../simgear/screen/extensions.hxx:449: error: `GLXPbufferSGIX' has not been 
declared
../../simgear/screen/extensions.hxx:449: error: ISO C++ forbids declaration of 
`parameter' with no type

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Paul Surgeon
On Sunday, 31 July 2005 11:19, Richard Harke wrote:
 On my system, I find that both are defined in GL/glxproto.h
 I have a Debian testing system and I run Nvidia. I don't think
 this file is from Nvidia, however, but I don't know the exact package.
 Apparently belongs to some part of glx

 Richard Harke

If you scroll down to about line 1700 you'll find :
#undef GLXPbuffer
#undef GLXPbufferSGIX

They are just temporarily defined as something and then undefined again.

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Paul Surgeon
Problem fixed!

SimGear WILL NOT compile with nVidia 6629 headers (like it used to).
I updated to 7667 OpenGL headers and it compiles now.

What I should do is do a diff between the 6629 and 7667 headers to find the 
problem but I'm too tired and lazy and am happy that things now work.  ;)

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Gerard Robin
Le dimanche 31 juillet 2005 à 12:12 +0200, Paul Surgeon a écrit :
 Problem fixed!
 
 SimGear WILL NOT compile with nVidia 6629 headers (like it used to).
 I updated to 7667 OpenGL headers and it compiles now.
 
 What I should do is do a diff between the 6629 and 7667 headers to find the 
 problem but I'm too tired and lazy and am happy that things now work.  ;)
 
 Paul
 
Don't mind 7669 is better than 6629.
It can be installed on the Linux kernel. 2.6.12.2
We only get difficulties  with Ac3D 5.021 which randomly don't work. 
 
-- 
Gerard


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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-31 Thread Erik Hofman

Paul Surgeon wrote:

Problem fixed!

SimGear WILL NOT compile with nVidia 6629 headers (like it used to).
I updated to 7667 OpenGL headers and it compiles now.

What I should do is do a diff between the 6629 and 7667 headers to find the 
problem but I'm too tired and lazy and am happy that things now work.  ;)


That's great, thanks for the warning.

Erik

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


[Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-30 Thread Paul Surgeon
The updates (RenderTexture.cpp RenderTexture.h extensions.cxx extensions.hxx) 
committed to SimGear on the 13th July don't compile on my system.

Error messages :
../../simgear/screen/extensions.hxx:438: error: ISO C++ forbids declaration of 
`GLXPbufferSGIX' with no type
../../simgear/screen/extensions.hxx:438: error: typedef `GLXPbufferSGIX' is 
initialized (use __typeof__ instead)
../../simgear/screen/extensions.hxx:438: error: `glXCreateGLXPbufferProc' was 
not declared in this scope
../../simgear/screen/extensions.hxx:438: error: expected `,' or `;' before '(' 
token

GLXPbufferSGIX is definately defined in my glx.h/glext.h files.
If I roll back to 12th July I have no problems.
Any ideas?

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-30 Thread Paul Surgeon
On Saturday, 30 July 2005 18:27, Paul Surgeon wrote:
 The updates (RenderTexture.cpp RenderTexture.h extensions.cxx
 extensions.hxx) committed to SimGear on the 13th July don't compile on my
 system.

 Error messages :
 ../../simgear/screen/extensions.hxx:438: error: ISO C++ forbids declaration
 of `GLXPbufferSGIX' with no type
 ../../simgear/screen/extensions.hxx:438: error: typedef `GLXPbufferSGIX' is
 initialized (use __typeof__ instead)
 ../../simgear/screen/extensions.hxx:438: error: `glXCreateGLXPbufferProc'
 was not declared in this scope
 ../../simgear/screen/extensions.hxx:438: error: expected `,' or `;' before
 '(' token

 GLXPbufferSGIX is definately defined in my glx.h/glext.h files.
 If I roll back to 12th July I have no problems.
 Any ideas?

 Paul

Please disregard.
I don't understand why it didn't compile before even after 2 clean checkouts 
but now it's happy.
Seems like I confused it enough with the rolling backwards and forwards to 
make it happy.

Paul

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


Re: [Flightgear-devel] SimGear RenderTexture changes causing compile problems

2005-07-30 Thread Paul Surgeon
There is still a problem.

If I roll back extensions.hxx and RenderTexture.cpp then I can compile 
SimGear.
I'll try figure out what's causing it but I'm not very strong at C or C++

Paul

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