Re: [Flightgear-devel] SimGear CVS build error
On Fri, 27 Feb 2004 09:39:14 +0100, Roy Vegard Ovesen [EMAIL PROTECTED] wrote: I should mention that I am using Cygwin. I get this error when building SimGear: if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../.. -pipe -O2 -Wall -DWIN32 -DNOMINMAX -D_REENTRANT -MT glut_shapes.o -MD -MP -MF .deps/glut_shapes.Tpo \ -c -o glut_shapes.o `test -f 'glut_shapes.c' || echo './'`glut_shapes.c; \ then mv -f .deps/glut_shapes.Tpo .deps/glut_shapes.Po; \ else rm -f .deps/glut_shapes.Tpo; exit 1; \ fi In file included from glut_shapes.c:59: /usr/include/w32api/GL/glu.h:230: error: syntax error before '*' token In file included from glut_shapes.c:61: glut_shapes.h:12:1: warning: APIENTRY redefined In file included from /usr/include/w32api/GL/glu.h:37, from glut_shapes.c:59: /usr/include/w32api/GL/gl.h:80:1: warning: this is the location of the previous definition make[5]: *** [glut_shapes.o] Error 1 Any ideas? -- Roy Vegard Ovesen ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] SimGear CVS build error
Roy Vegard Ovesen wrote: On Fri, 27 Feb 2004 09:39:14 +0100, Roy Vegard Ovesen [EMAIL PROTECTED] wrote: I should mention that I am using Cygwin. I think this is the problem where cygwin was installed together with XFree86. So far everybody has advised not to install XFree86 on cygwin, but recently someone suggested to configure using --without-x Erik I get this error when building SimGear: if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../.. -pipe -O2 -Wall -DWIN32 -DNOMINMAX -D_REENTRANT -MT glut_shapes.o -MD -MP -MF .deps/glut_shapes.Tpo \ -c -o glut_shapes.o `test -f 'glut_shapes.c' || echo './'`glut_shapes.c; \ then mv -f .deps/glut_shapes.Tpo .deps/glut_shapes.Po; \ else rm -f .deps/glut_shapes.Tpo; exit 1; \ fi In file included from glut_shapes.c:59: /usr/include/w32api/GL/glu.h:230: error: syntax error before '*' token In file included from glut_shapes.c:61: glut_shapes.h:12:1: warning: APIENTRY redefined In file included from /usr/include/w32api/GL/glu.h:37, from glut_shapes.c:59: /usr/include/w32api/GL/gl.h:80:1: warning: this is the location of the previous definition make[5]: *** [glut_shapes.o] Error 1 Any ideas? ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] SimGear CVS build error
Roy Vegard Ovesen wrote: On Fri, 27 Feb 2004 09:39:14 +0100, Roy Vegard Ovesen wrote: I should mention that I am using Cygwin. I get this error when building SimGear: if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../.. -pipe -O2 -Wall -DWIN32 -DNOMINMAX -D_REENTRANT -MT glut_shapes.o -MD ... The code bellow is a dirty hack and not the solution : $ cvs -z3 -q diff -u glut_shapes.c Index: glut_shapes.c === RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/sky/clouds3d/glut_shapes.c,v retrieving revision 1.1 diff -u -r1.1 glut_shapes.c --- a/glut_shapes.c 11 Aug 2003 21:14:48 - 1.1 +++ b/glut_shapes.c 27 Feb 2004 09:37:24 - @@ -49,9 +49,9 @@ #endif -#ifdef HAVE_WINDOWS_H +//#ifdef HAVE_WINDOWS_H # include windows.h -#endif +//#endif #include math.h ==END== A correct solution would be to find out why HAVE_WINDOWS_H is not defined -Fred ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] SimGear CVS build error
On Fri, 27 Feb 2004 10:30:52 +0100, Erik Hofman [EMAIL PROTECTED] wrote: I think this is the problem where cygwin was installed together with XFree86. So far everybody has advised not to install XFree86 on cygwin, but recently someone suggested to configure using --without-x I'm sure I haven't installed XFree86. -- Roy Vegard Ovesen ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] SimGear CVS build error
On Fri, 27 Feb 2004 10:40:39 +0100 (CET), Frederic BOUVIER [EMAIL PROTECTED] wrote: A correct solution would be to find out why HAVE_WINDOWS_H is not defined Thanks for the tip! I added -DHAVE_WINDOWS_H to my CXXFLAGS environment variable, defining HAVE_WINDOWS_H. I think this is a better solution that changing the source code. -- Roy Vegard Ovesen ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] SimGear CVS build error
Roy Vegard Ovesen wrote: On Fri, 27 Feb 2004 10:40:39 +0100 (CET), Frederic BOUVIER [EMAIL PROTECTED] wrote: A correct solution would be to find out why HAVE_WINDOWS_H is not defined Thanks for the tip! I added -DHAVE_WINDOWS_H to my CXXFLAGS environment variable, defining HAVE_WINDOWS_H. I think this is a better solution that changing the source code. The configure script *should* define this flag for you automatically, but you may need to add: #ifdef HAVE_CONFIG_H #include config.h #endif to the top of the affected file. Regards, Curt. -- Curtis Olson Intelligent Vehicles Lab 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] SimGear CVS build error
Curtis L. Olson wrote: Roy Vegard Ovesen wrote: On Fri, 27 Feb 2004 10:40:39 +0100 (CET), Frederic BOUVIER wrote: A correct solution would be to find out why HAVE_WINDOWS_H is not defined Thanks for the tip! I added -DHAVE_WINDOWS_H to my CXXFLAGS environment variable, defining HAVE_WINDOWS_H. I think this is a better solution that changing the source code. The configure script *should* define this flag for you automatically, but you may need to add: #ifdef HAVE_CONFIG_H #include config.h #endif to the top of the affected file. That's what I thought first. But the file has already : #ifdef HAVE_CONFIG_H # include simgear_config.h #endif and HAVE_WINDOW_H is not present in that file, nor in configure.ac, so no reason it appears in simgear_config.h It is defined in simgear_config.h.vc5 that is used to bootstrap MSVC projects -Fred ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel