[Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Frank Olaf
I'm attempting to compile SimGear using mingw/msys on a Windows XP box.  
I've set it up following the instructions in the wiki, and downloaded 
the precompiled libraries for pthread and such.  However, I get the 
following error when trying to make:


make[3]: Entering directory 
`/c/fgcompile/simgear/source/simgear/environment'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..  -I/fg/include  
-g -O2 -D_REENTRANT -MT metar.o -MD -MP -MF .deps/metar.Tpo -c -o 
metar.o metar.cxx; \
then mv -f .deps/metar.Tpo .deps/metar.Po; else rm -f 
.deps/metar.Tpo; exit 1; fi

metar.cxx: In member function `void SGMetar::useCurrentDate()':
metar.cxx:162: error: `gmtime_r' undeclared (first use this function)
metar.cxx:162: error: (Each undeclared identifier is reported only once 
for each function it appears in.)

make[3]: *** [metar.o] Error 1

gmtime_r is defined in pthreads.h which resides in /fg/include, which is 
included in the commandline as you may see. however, this file does not 
seem to be included since it is unable to find the definition.


Any suggestions?
--
Frank Olaf Sem-Jacobsen


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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Frederic Bouvier
Quoting Frank Olaf:

 I'm attempting to compile SimGear using mingw/msys on a Windows XP box.
 I've set it up following the instructions in the wiki, and downloaded
 the precompiled libraries for pthread and such.  However, I get the
 following error when trying to make:

 make[3]: Entering directory
 `/c/fgcompile/simgear/source/simgear/environment'
 if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..  -I/fg/include
 -g -O2 -D_REENTRANT -MT metar.o -MD -MP -MF .deps/metar.Tpo -c -o
 metar.o metar.cxx; \
 then mv -f .deps/metar.Tpo .deps/metar.Po; else rm -f
 .deps/metar.Tpo; exit 1; fi
 metar.cxx: In member function `void SGMetar::useCurrentDate()':
 metar.cxx:162: error: `gmtime_r' undeclared (first use this function)
 metar.cxx:162: error: (Each undeclared identifier is reported only once
 for each function it appears in.)
 make[3]: *** [metar.o] Error 1

 gmtime_r is defined in pthreads.h which resides in /fg/include, which is
 included in the commandline as you may see. however, this file does not
 seem to be included since it is unable to find the definition.

There is no gmtime_r in the MS C runtime that mingw use because gmtime is
already reentrant. As this code compiles with MSVC, I guess there is a
#ifdef/#else/#endif construct around it and the condition should be tweaked to
cope with mingw.

-Fred

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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Erik Hofman

Frank Olaf wrote:


metar.cxx: In member function `void SGMetar::useCurrentDate()':
metar.cxx:162: error: `gmtime_r' undeclared (first use this function)
metar.cxx:162: error: (Each undeclared identifier is reported only once 
for each function it appears in.)


I think I have this fixed in CVS now.

Erik

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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Frank Olaf
Thanks, that was impressively quick.  The compilation now cleanly passes 
the point in question, but it now holds on a different error that also 
seems to be related to pthreads.


The error message is quite correct, there is no config.h in the same 
directory as pthread.h.


make[3]: Entering directory `/c/fgcompile/simgear/source/simgear/threads'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..  -I/fg/include  
-g -O2 -D_REENTRANT -MT SGThread.o -MD -MP -MF .deps/SGThread.Tpo -c 
-o SGThread.o SGThread.cxx; \
then mv -f .deps/SGThread.Tpo .deps/SGThread.Po; else rm -f 
.deps/SGThread.Tpo; exit 1; fi

In file included from SGThread.hxx:28,
from SGThread.cxx:17:
C:/msys/1.0/fg/include/pthread.h:167:20: config.h: No such file or directory
SGThread.cxx: In function `int gettimeofday(timeval*, void*)':
SGThread.cxx:70: warning: converting to `long int' from `float'

Erik Hofman wrote:

 Frank Olaf wrote:

 metar.cxx: In member function `void SGMetar::useCurrentDate()':
 metar.cxx:162: error: `gmtime_r' undeclared (first use this function)
 metar.cxx:162: error: (Each undeclared identifier is reported only 
once for each function it appears in.)



 I think I have this fixed in CVS now.

 Erik

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



--
Frank Olaf Sem-Jacobsen


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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Erik Hofman

Frank Olaf wrote:
Thanks, that was impressively quick.  The compilation now cleanly passes 
the point in question, but it now holds on a different error that also 
seems to be related to pthreads.


The error message is quite correct, there is no config.h in the same 
directory as pthread.h.


make[3]: Entering directory `/c/fgcompile/simgear/source/simgear/threads'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..  -I/fg/include  
-g -O2 -D_REENTRANT -MT SGThread.o -MD -MP -MF .deps/SGThread.Tpo -c 
-o SGThread.o SGThread.cxx; \
then mv -f .deps/SGThread.Tpo .deps/SGThread.Po; else rm -f 
.deps/SGThread.Tpo; exit 1; fi

In file included from SGThread.hxx:28,
from SGThread.cxx:17:
C:/msys/1.0/fg/include/pthread.h:167:20: config.h: No such file or 
directory


This is odd, I don't think pthread.h should be referencing config.h 
anytime, unless it's not the autoconf generated file but rather a system 
wide file??


Erik

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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Frank Olaf

Erik Hofman wrote:

 Frank Olaf wrote:

 Thanks, that was impressively quick.  The compilation now cleanly 
passes the point in question, but it now holds on a different error that 
also seems to be related to pthreads.


 The error message is quite correct, there is no config.h in the same 
directory as pthread.h.


 make[3]: Entering directory 
`/c/fgcompile/simgear/source/simgear/threads'
 if g++ -DHAVE_CONFIG_H -I. -I. -I../../simgear -I../..  
-I/fg/include  -g -O2 -D_REENTRANT -MT SGThread.o -MD -MP -MF 
.deps/SGThread.Tpo -c -o SGThread.o SGThread.cxx; \
 then mv -f .deps/SGThread.Tpo .deps/SGThread.Po; else rm -f 
.deps/SGThread.Tpo; exit 1; fi

 In file included from SGThread.hxx:28,
 from SGThread.cxx:17:
 C:/msys/1.0/fg/include/pthread.h:167:20: config.h: No such file or 
directory



 This is odd, I don't think pthread.h should be referencing config.h 
anytime, unless it's not the autoconf generated file but rather a system 
wide file??


 Erik

I wouldn't know. Anyway, I commented out the reference to config.h from 
pthread.h and it seemed to compile cleanly.  I will get on with 
compiling flightgear and see how it works out :)


--
Frank Olaf Sem-Jacobsen



--
Frank Olaf Sem-Jacobsen


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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread Frederic Bouvier
Quoting Frank Olaf :

 Frank Olaf wrote:

  
   I wouldn't know. Anyway, I commented out the reference to config.h
 from pthread.h and it seemed to compile cleanly.  I will get on with
 compiling flightgear and see how it works out :)
  

 Apart from some problems with Glut not being present, compilation and
 execution of flightgear under msys/mingw went quite flawlessly.  I don't
 know if others have had the same problems I did, if they are, perhaps
 the wiki page describing the process should be updated?

It's a wiki so go on if you think it needs to be.

-Fred

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


Re: [Flightgear-users] Compiling simgear/flightgear in mingw/msys

2005-10-06 Thread AJ MacLeod
On Thursday 06 October 2005 13:05, Frank Olaf wrote:
 Apart from some problems with Glut not being present, compilation and
 execution of flightgear under msys/mingw went quite flawlessly.  I don't
 know if others have had the same problems I did, if they are, perhaps
 the wiki page describing the process should be updated?

If you know that any page in the wiki is wrong or outdated, _please_ do update 
it for the benefit of others - after all, that's the whole idea of a Wiki!

Actually, I'm mildly surprised you found it in the first place - many people 
seem to be unaware of its existence, possibly it's not promoted enough on the 
website.

Likewise, all these tutorials that have been mentioned recently - they can be 
stuck on the wiki in a suitable place, that way more people should benefit 
from them than just the minority subscribed to the lists at time of 
posting...
 
Which leads to another point about the wiki that several others have raised 
recently - perhaps we should have a wiki that's run on a machine admin'd by 
the project?  People have raised various objections to the current one, 
probably most importantly the unknown status of any backup facility to save 
the accumulated knowledge disappearing at a stroke...

Cheers,

AJ

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