Re: [Flightgear-devel] Problems Compiling clouds3d
Paul Deppe writes: > > I think the problem stems from being included before "extgl.h" > > > > Note and both include so "extgl.h" must > > precede these also > > > > Norman > > I inserted the following in SkyTexture.hpp at line 36: > > #ifdef WIN32 > # include "extgl.h" > #endif > > ... and it worked - thanks. But I still wonder if there is some > configuration issue with my system because no one else seems to be getting > this error. FWIW - I did not get this error because I do not use the Cygwin OpenGL headers < see my other post on this subject > Cheers Norman ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Problems Compiling clouds3d
Paul Deppe writes: > > I found that Cygwin installs TWO copies of gl.h: > > opengl package installs: /usr/include/GL/gl.h (which declares > glActiveTextureARB) and w32api package installs: > /usr/include/w32api/GL/gl.h, (which does not). > > The w32api gl.h is dated later but does not declare glActiveTextureARB. > > Aha... it works _without_ the above patch when I hide > /usr/include/w32api/GL! Is this a Cygwin bug? Please ask this question over on the cygwin list [EMAIL PROTECTED] IMHO the Cygwin OpenGL support is ~broken and we need all the complaints that we can get Norman ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
RE: [Flightgear-devel] Problems Compiling clouds3d
> I think the problem stems from being included before "extgl.h" > > Note and both include so "extgl.h" must > precede these also > > Norman I inserted the following in SkyTexture.hpp at line 36: #ifdef WIN32 # include "extgl.h" #endif ... and it worked - thanks. But I still wonder if there is some configuration issue with my system because no one else seems to be getting this error. I'll also try this fix with plib/examples/src/ssg/water/water.cxx, which also has the same compile error. Also... > Could it be you are linking against a wrong OpenGL library? > It looks like glActiveTextureARB is an OpenGl 1.3 extension, on the > other hand, I have included a (compile time) check to see if > glActiveTextureARB is actually supported by the system and neglect this > code otherwise. > > Could you check if GL_ARB_multitexture is defined in your gl.h > header file? > > Erik I found that Cygwin installs TWO copies of gl.h: opengl package installs: /usr/include/GL/gl.h (which declares glActiveTextureARB) and w32api package installs: /usr/include/w32api/GL/gl.h, (which does not). The w32api gl.h is dated later but does not declare glActiveTextureARB. Aha... it works _without_ the above patch when I hide /usr/include/w32api/GL! Is this a Cygwin bug? Paul Paul R. Deppe Veridian Engineering (formerly Calspan) Flight & Aerospace Research Group 150 North Airport Drive Buffalo, NY 14225 (716) 631-6898 (716) 631-6990 FAX [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Problems Compiling clouds3d
Paul Deppe writes: > > > > > > When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: > > > "WIN32 redefined", "initialization from int to float", "... is > > implicitly a > > > typename", and many others, and finally the following error > > when compiling > > > SkyTextureState.cpp: > > > > > SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this > > >function) > I think the problem stems from being included before "extgl.h" Note and both include so "extgl.h" must precede these also Norman ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Problems Compiling clouds3d
Paul Deppe wrote: Paul Deppe wrote: When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: "WIN32 redefined", "initialization from int to float", "... is implicitly a typename", and many others, and finally the following error when compiling SkyTextureState.cpp: SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this function) Erik wrote: I know there is a fix in SimGear to include glext.h for windows platforms. Maybe one of the ifdefs fails (because a version number changed or something like that)? Erik, Here are some of the references to EXTGL_NEEDED in the SimGear root directory: -- configure.ac: AM_CONDITIONAL(EXTGL_NEEDED, test "x$ac_cv_header_windows_h" = "xyes") It looks like this is for windows/MSVC compilers only, but Norman might know more about it. extgl.h is #include'd by SkyTextureState.cpp via SkyTextureState.hpp via SkyContext.hpp. It looks like all the ifdef's are working properly. So I am stumped here - why can't the compiler see the declaration of glActiveTextureARB() when compiling SkyTextureState.cpp? I'm missing something. Could it be you are linkijg against a wrong OpenGL library? It looks like glActiveTextureARB is an OpenGl 1.3 extension, on the other hand, I have included a (compile time) check to see if glActiveTextureARB is actually supported by the system and neglect this code otherwise. Could you check if GL_ARB_multitexture is defined in your gl.h header file? Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
RE: [Flightgear-devel] Problems Compiling clouds3d
> Paul Deppe wrote: > > > > When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: > > "WIN32 redefined", "initialization from int to float", "... is > implicitly a > > typename", and many others, and finally the following error > when compiling > > SkyTextureState.cpp: > > > SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this > >function) Erik wrote: > I know there is a fix in SimGear to include glext.h for windows > platforms. Maybe one of the ifdefs fails (because a version number > changed or something like that)? Erik, Here are some of the references to EXTGL_NEEDED in the SimGear root directory: -- configure.ac: AM_CONDITIONAL(EXTGL_NEEDED, test "x$ac_cv_header_windows_h" = "xyes") -- configure: if test "x$ac_cv_header_windows_h" = "xyes"; then EXTGL_NEEDED_TRUE= EXTGL_NEEDED_FALSE='#' else EXTGL_NEEDED_TRUE='#' EXTGL_NEEDED_FALSE= fi -- config.log: EXTGL_NEEDED_FALSE='#' EXTGL_NEEDED_TRUE='' -- Makefile: EXTGL_NEEDED_FALSE = # EXTGL_NEEDED_TRUE = And in SimGear/simgear/sky/clouds3d/Makefile: EXTGL_SOURCE = extgl.c extgl.h #EXTGL_SOURCE = libsgclouds3d_a_SOURCES = \ $(EXTGL_SOURCE) \ vec3fv.cpp vec3fv.hpp vec3f.hpp vec4f.hpp vec2f.hpp \ ... etc. extgl.h is #include'd by SkyTextureState.cpp via SkyTextureState.hpp via SkyContext.hpp. It looks like all the ifdef's are working properly. So I am stumped here - why can't the compiler see the declaration of glActiveTextureARB() when compiling SkyTextureState.cpp? I'm missing something. Paul Paul R. Deppe Veridian Engineering (formerly Calspan) Flight & Aerospace Research Group 150 North Airport Drive Buffalo, NY 14225 (716) 631-6898 (716) 631-6990 FAX [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Problems Compiling clouds3d
Paul Deppe wrote: Gents, When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: "WIN32 redefined", "initialization from int to float", "... is implicitly a typename", and many others, and finally the following error when compiling SkyTextureState.cpp: SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this function) I know there is a fix in SimGear to include glext.h for windows platforms. Maybe one of the ifdefs fails (because a version number changed or something like that)? Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Problems Compiling clouds3d
Gents, When compiling CVS simgear/sky/clouds3d I am getting numerous warnings: "WIN32 redefined", "initialization from int to float", "... is implicitly a typename", and many others, and finally the following error when compiling SkyTextureState.cpp: if g++ -DHAVE_CONFIG_H -I. -I. -I../../../simgear -I../../..-O2 -D_REENTRAN T -MT SkyTextureState.o -MD -MP -MF ".deps/SkyTextureState.Tpo" \ -c -o SkyTextureState.o `test -f 'SkyTextureState.cpp' || echo './'`SkyTexture State.cpp; \ then mv ".deps/SkyTextureState.Tpo" ".deps/SkyTextureState.Po"; \ else rm -f ".deps/SkyTextureState.Tpo"; exit 1; \ fi SkyTextureState.cpp: In member function `SKYRESULT SkyTextureState::Activate()': SkyTextureState.cpp:94: `glActiveTextureARB' undeclared (first use this function) SkyTextureState.cpp:94: (Each undeclared identifier is reported only once for each function it appears in.) make[4]: *** [SkyTextureState.o] Error 1 Are these warnings a "feature" of this module or am I missing some C++ flag? I'm using latest Cygwin/gcc 3.2. Thanks, Paul Paul R. Deppe Veridian Engineering (formerly Calspan) Flight & Aerospace Research Group 150 North Airport Drive Buffalo, NY 14225 (716) 631-6898 (716) 631-6990 FAX [EMAIL PROTECTED] ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel