Quoting Martin Spott :

> Hi Jon, Frederic,
>
> Jon Stockill wrote:
> > Jon Stockill wrote:
>
> I didn't ever recieve this first EMail ....
>
> > I forgot to add - commenting out the #undef APIENTRY line in glut.h
> > allowed me to complete the build.
>
> I'm not still there but at least the ATC stuff compiles fine after
> following your recommendation - I guess the rest will do so as well.
>
> BTW, yes, I have the "real" glut installation on IRIX. As none of the
> OSG header files includes glut.h, wouldn't it make sense to explicitly
> define APIENTRY for example in simgear/scene/model/model.hxx on
> non-Windows systems in order to make FlightGear compile with the
> original glut as well, or is this a completely mislead idea ?

The problem is more or less identical on Windows and Unix : glut #undef APIENTRY
. If you happen to have glut included between your define and the code that use
it, either directly or indirectly, as it is the case including plib/pu.h,
you're dead. It would make more sense to apply Jon's patch, or mine as
previously suggested. Off course, this is an open trap for newcomers, just like
the freeglut 2.4 bug.

BTW: freeglut doesn't use the MS APIENTRY, but their own FGAPIENTRY, so no
conflicts there.

-Fred

--
Frédéric Bouvier
http://frfoto.free.fr                      Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/2278  Other photo gallery
http://fgsd.sourceforge.net/               FlightGear Scenery Designer

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to