Newbie questions probably, apologies in advance if "RTFM" but I haven't
found an answer to these yet.  Impressive body of code there in
FlightGear/SimGear, I am investigating for use in an internal project.

Summary for the impatient:  
1)      compiling for Windows while needing pthread.h? Avoidable? How?
2)      Need Boost - really?

Longer version for those who will read before answering...

I am trying to build FlightGear/SimGear on Windows XP (MSVC 8).

I am coming up with a few problems relating to dependencies.  

It is claimed that FlightGear depends on OpenSceneGraph, OpenAL and
plib.  However I find the following additional dependencies:

a.      Alut
b.      Pthreads
c.      Boost

Alut is not included in the OpenAL 1.1 binary or SDK from OpenAL.org,
but I obtained a copy separately so that one was fairly easily put to
rest. (n.b. - I couldn't get CMake to properly configure the freealut
code to build, so downloaded the binaries instead as the path of least
resistance)

Pthreads - I guess I could use the POSIX threads for Win32, but I am
curious since OpenSceneGraph is already being used, and it uses
OpenThreads, would it not be better to use OpenThreads instead?
Helpful hints are welcome in compiling for pthreads under Windows since
the supplied MSVC "solutions" don't apparently include the right setup
for this. ("fatal error C1083: Cannot open include file: 'pthread.h': No
such file or directory")

Boost - this was a big surprise.  Boost is a great set of libraries, but
this is a rather huge dependency to miss.  Also, the dependency on Boost
seems to be small (and therefore easily avoidable?):  the Boost
Singleton class is used in simgear's Singleton class, and "foreach" is
used in fg_os_osgviewer.cxx.   I could probably start a war by
suggesting that maybe a singleton class should be avoided entirely, but
even if one is needed it doesn't seem helpful to pull in the whole Boost
library just to get one.  Is this a recently introduced dependency?  Is
there a graceful way around this one?

Thanks for the assistance!
Stan

**********************************************
Stan Martin, P.E.
Principal Systems Engineer
L-3 Communications/IS
903-408-8756
********************************************** 

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to