Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared,and warnings

2003-01-04 Thread Norman Vine
Curtis L. Olson writes:


> Carsten Hoefer writes:
> > Am Sam, 2003-01-04 um 00.19 schrieb Julian Foad:
> > > That works for me, adding it just before the #include, like this:
> > > 
> > >#define GLX_GLXEXT_PROTOTYPES
> > >#include 
> > > 
> > > Could someone check this in?
> > > 
> > > - Julian
> > > 
> > 
> > Works also brilliant for me on SuSE8.1 
> > (Kernel 2.4.19, NVidia 1.0-3123, Mesa 4.0.3-69)
> 
> So, something probably changed between Mesa-3.x and Mesa-4.x
> 
> However, defining internal symbols like this seems like a completely
> wrong approach that will probably break things other places or for
> other platforms ... there's got to be a "right" way to do this.  I'm
> really going to drag my heels on adding this unless someone can show
> me that this is the "right" way to do it.

Since I run Win32 for me this is just 'academic' but ...

the Mesa 4.0 internal header glxapi.h

has this at the top

#define GLX_GLXEXT_PROTOTYPES
#include "GL/glx.h"

so it would appear that the *right* thing to do here would 
be to have a configure test for the 'Mesa Version' and then 
#define GLX_GLXEXT_PROTOTYPES if appropriate
ie mesa version == 4  or perhaps  mesa version >= 4 

Note that a grep of the Mesa source only returned this one
instance for this #define being made

Regards

Norman


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-04 Thread James Turner

On Saturday, January 4, 2003, at 05:01  pm, Curtis L. Olson wrote:


Carsten Hoefer writes:

Am Sam, 2003-01-04 um 00.19 schrieb Julian Foad:

That works for me, adding it just before the #include, like this:

   #define GLX_GLXEXT_PROTOTYPES
   #include 


However, defining internal symbols like this seems like a completely
wrong approach that will probably break things other places or for
other platforms ... there's got to be a "right" way to do this.  I'm
really going to drag my heels on adding this unless someone can show
me that this is the "right" way to do it.


I'm also on Suse 8.1, and I'd just point out that, from reading the 
GL/glx headers (which may the nVidia ones, I'm unsure), it looks like 
we might want to be using glXGetProcAddr instead of the ARb version if 
it's present. Maybe that's complete nonsense though.

H&H
James

--
That which does not kill me has poor aim


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared,and warnings

2003-01-04 Thread Curtis L. Olson
Carsten Hoefer writes:
> Am Sam, 2003-01-04 um 00.19 schrieb Julian Foad:
> > That works for me, adding it just before the #include, like this:
> > 
> >#define GLX_GLXEXT_PROTOTYPES
> >#include 
> > 
> > Could someone check this in?
> > 
> > - Julian
> > 
> 
> Works also brilliant for me on SuSE8.1 
> (Kernel 2.4.19, NVidia 1.0-3123, Mesa 4.0.3-69)

So, something probably changed between Mesa-3.x and Mesa-4.x

However, defining internal symbols like this seems like a completely
wrong approach that will probably break things other places or for
other platforms ... there's got to be a "right" way to do this.  I'm
really going to drag my heels on adding this unless someone can show
me that this is the "right" way to do it.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared,and warnings

2003-01-04 Thread Carsten Hoefer
Am Sam, 2003-01-04 um 00.19 schrieb Julian Foad:
> That works for me, adding it just before the #include, like this:
> 
>#define GLX_GLXEXT_PROTOTYPES
>#include 
> 
> Could someone check this in?
> 
> - Julian
> 

Works also brilliant for me on SuSE8.1 
(Kernel 2.4.19, NVidia 1.0-3123, Mesa 4.0.3-69)

Carsten





___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-03 Thread Curtis L. Olson
Norman Vine writes:
> Curtis L. Olson writes:
> > Norman Vine writes:
> > > Julian Foad writes:
> > > >
> > > > Norman Vine wrote:
> > > > > Julian Foad writes:
> > > > > 
> > > > >>main.cxx: In function `bool fgMainInit(int, char**)':
> > > > >>main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
> > > > > 
> > > > > Looking at the Mesa headers it seems as if 
> > > > > GLX_GLXEXT_PROTOTYPES 
> > > > > needs to be defined 
> > > > 
> > > > That works for me, adding it just before the #include, like this:
> > > > 
> > > >#define GLX_GLXEXT_PROTOTYPES
> > > >#include 
> > > 
> > > Probably better to make it an autoconf defined thing
> > > for all 'X' platforms as this will probably be needed in
> > > other files eventually
> > 
> > This isn't needed for my X environment ... debian/testing, nvidia
> > drivers.
> 
> Where do your GL headers come from ??
> 
> FWIW I came up with this by grepping the Mesa4 headers.

It looks like I have GL/gl.h from Mesa 3.4 .

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared,and warnings

2003-01-03 Thread Matthew Johnson
On Fri, 2003-01-03 at 15:40, Curtis L. Olson wrote:
> Norman Vine writes:
> > Julian Foad writes:
> > >
> > > Norman Vine wrote:
> > > > Julian Foad writes:
> > > > 
> > > >>main.cxx: In function `bool fgMainInit(int, char**)':
> > > >>main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
> > > > 
> > > > Looking at the Mesa headers it seems as if 
> > > > GLX_GLXEXT_PROTOTYPES 
> > > > needs to be defined 
> > > 
> > > That works for me, adding it just before the #include, like this:
> > > 
> > >#define GLX_GLXEXT_PROTOTYPES
> > >#include 
> > 
> > Probably better to make it an autoconf defined thing
> > for all 'X' platforms as this will probably be needed in
> > other files eventually
> 
> This isn't needed for my X environment ... debian/testing, nvidia
> drivers.
> 
> Regards,
> 
> Curt.

Had this issue on SuSE 8.1 with the Nvidia drivers. Not the latest ones
from Nvidia, the previous ones (without the 2D slowness bug). The fix
listed here fixed my issue.

-- 
Matthew Johnson <[EMAIL PROTECTED]>


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-03 Thread Norman Vine
Curtis L. Olson writes:
> Norman Vine writes:
> > Julian Foad writes:
> > >
> > > Norman Vine wrote:
> > > > Julian Foad writes:
> > > > 
> > > >>main.cxx: In function `bool fgMainInit(int, char**)':
> > > >>main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
> > > > 
> > > > Looking at the Mesa headers it seems as if 
> > > > GLX_GLXEXT_PROTOTYPES 
> > > > needs to be defined 
> > > 
> > > That works for me, adding it just before the #include, like this:
> > > 
> > >#define GLX_GLXEXT_PROTOTYPES
> > >#include 
> > 
> > Probably better to make it an autoconf defined thing
> > for all 'X' platforms as this will probably be needed in
> > other files eventually
> 
> This isn't needed for my X environment ... debian/testing, nvidia
> drivers.

Where do your GL headers come from ??

FWIW I came up with this by grepping the Mesa4 headers.

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-03 Thread Curtis L. Olson
Norman Vine writes:
> Julian Foad writes:
> >
> > Norman Vine wrote:
> > > Julian Foad writes:
> > > 
> > >>main.cxx: In function `bool fgMainInit(int, char**)':
> > >>main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
> > > 
> > > Looking at the Mesa headers it seems as if 
> > > GLX_GLXEXT_PROTOTYPES 
> > > needs to be defined 
> > 
> > That works for me, adding it just before the #include, like this:
> > 
> >#define GLX_GLXEXT_PROTOTYPES
> >#include 
> 
> Probably better to make it an autoconf defined thing
> for all 'X' platforms as this will probably be needed in
> other files eventually

This isn't needed for my X environment ... debian/testing, nvidia
drivers.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-03 Thread Norman Vine
Julian Foad writes:
>
> Norman Vine wrote:
> > Julian Foad writes:
> > 
> >>main.cxx: In function `bool fgMainInit(int, char**)':
> >>main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
> > 
> > Looking at the Mesa headers it seems as if 
> > GLX_GLXEXT_PROTOTYPES 
> > needs to be defined 
> 
> That works for me, adding it just before the #include, like this:
> 
>#define GLX_GLXEXT_PROTOTYPES
>#include 

Probably better to make it an autoconf defined thing
for all 'X' platforms as this will probably be needed in
other files eventually

being on Win32 I can't test this though ...

Norman


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared,and warnings

2003-01-03 Thread Julian Foad
Norman Vine wrote:

Julian Foad writes:


main.cxx: In function `bool fgMainInit(int, char**)':
main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)


Looking at the Mesa headers it seems as if 
GLX_GLXEXT_PROTOTYPES 
needs to be defined 

That works for me, adding it just before the #include, like this:

  #define GLX_GLXEXT_PROTOTYPES
  #include 

Could someone check this in?

- Julian


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-02 Thread Norman Vine
Julian Foad writes:

> main.cxx: In function `bool fgMainInit(int, char**)':
> main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)

Looking at the Mesa headers it seems as if 
GLX_GLXEXT_PROTOTYPES 
needs to be defined 

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] main.cxx: glXGetProcAddressARB undeclared, and warnings

2003-01-02 Thread Julian Foad
Can anybody help with this error?  Anyone care to fix the warnings?

Making all in Main
In file included from main.cxx:91:
../../src/ATC/ATCmgr.hxx:201: warning: extra qualification `FGATCMgr::' on
   member `FindInList' ignored
main.cxx: In function `void fgRenderFrame()':
main.cxx:443: warning: unused variable `const SGPropertyNode*longitude'
main.cxx:445: warning: unused variable `const SGPropertyNode*latitude'
main.cxx:447: warning: unused variable `const SGPropertyNode*altitude'
main.cxx: In function `bool fgMainInit(int, char**)':
main.cxx:1608: `glXGetProcAddressARB' undeclared (first use this function)
main.cxx:1608: (Each undeclared identifier is reported only once for each
   function it appears in.)
main.cxx: In function `void fgLoadDCS()':
main.cxx:1906: warning: unused variable `ssgVertexArray*lights'
make[2]: *** [main.o] Error 1

SuSE 8.1, GCC 3.2.

- Julian


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel