1
0
Fork 0
flightgear/src/FDM/JSBSim
andy 7ceb85d454 Changes to get FlightGear (well, the src directory at least) to
configure and compile out-of-the-box on a MinGW target:

Use -lSDL instead of -lglut32 on windows builds when --enable-sdl
is set.

Link against alut.dll in addition to openal32.dll.

Replace BSD bcopy() with ANSI C memmove() in a few places.  This is
simpler than trying to abstract it out as a platform dependency in a
header file; bcopy() has never been standard.

The ENABLE_THREADS handling has changed to be set to 0 when threads
are not in use.  This breaks expressions like #ifdef ENABLE_THREADS.
Replace with a slightly more complicated expression.  It might have
been better to fix the configure.ac script, but I didn't know how and
this whole setting is likely to go away soon anyway.

The MinGW C runtime actually does include snprintf, so only MSVC
builds (and not all WIN32 ones) need _snprintf in JSBSim/FGState.cpp

Building on a platform with no glut at all exposed some spots where
plib/pu.h was being included without a toolkit setting (it defaults to
glut).  Include fg_os.hxx first.

And when still using glut, glut.h has a bizarre dependency on a
_WCHAR_T_DEFINED symbol.  It it's not defined, it tries to redefine
(!!) wchar_t to disasterous effect.
2004-04-30 00:52:11 +00:00
..
filtersjb Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
.cvsignore -Removed .cvsignore from itself, since .cvsignore is now in the CVS 2001-12-12 04:15:23 +00:00
AUTHORS Sync with latest JSBSim changes. 2001-11-30 17:49:37 +00:00
FGAerodynamics.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAerodynamics.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAircraft.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAircraft.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAtmosphere.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAtmosphere.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAuxiliary.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGAuxiliary.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGCoefficient.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGCoefficient.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGColumnVector3.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGColumnVector3.h Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGColumnVector4.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGColumnVector4.h Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGConfigFile.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGConfigFile.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGDefs.h Sync with latest JSBSim 2001-11-09 04:38:53 +00:00
FGEngine.cpp Fix a string clearance issue with certain compilers. 2004-03-12 17:33:30 +00:00
FGEngine.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGFactorGroup.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGFactorGroup.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGFCS.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGFCS.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGFDMExec.cpp Turn the console colors back to default before continueing 2004-01-19 13:51:05 +00:00
FGFDMExec.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGfdmSocket.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGfdmSocket.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGForce.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGForce.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGGroundReactions.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGGroundReactions.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGInertial.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGInertial.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGInitialCondition.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGInitialCondition.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGJSBBase.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGJSBBase.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGLGear.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGLGear.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGMassBalance.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGMassBalance.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGMatrix33.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGMatrix33.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGModel.cpp sync JSBSim and FlightGear 2003-06-03 08:46:15 +00:00
FGModel.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGNozzle.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGNozzle.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGOutput.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGOutput.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGPiston.cpp Initialize the varables *before* reading in the configuration file 2004-02-05 13:47:48 +00:00
FGPiston.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGPosition.cpp Fix an issue where math.h doesn't define sqrt in namespace std (at least on MSVC) and remove DOS line-endings. 2004-03-15 09:24:57 +00:00
FGPosition.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropeller.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropeller.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropertyManager.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropertyManager.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropulsion.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGPropulsion.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGRocket.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGRocket.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGRotation.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGRotation.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGRotor.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGRotor.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGScript.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGScript.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGSimTurbine.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGSimTurbine.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGState.cpp Changes to get FlightGear (well, the src directory at least) to 2004-04-30 00:52:11 +00:00
FGState.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGTable.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGTable.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGTank.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGTank.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGThruster.cpp Curt Olson: 2004-01-14 22:09:39 +00:00
FGThruster.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGTranslation.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGTranslation.h Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGTrim.cpp Sync. with JSBSim CVS. 2004-03-14 14:57:07 +00:00
FGTrim.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGTrimAxis.cpp Make more output honour debug_lvl. 2003-11-24 17:59:41 +00:00
FGTrimAxis.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGTurbine.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGTurbine.h Curt Olson: 2004-01-14 22:09:39 +00:00
FGUtility.cpp Latest JSBSim updates, including use of new "JSBSim" namespace 2003-01-24 12:55:28 +00:00
FGUtility.h Curt Olson: 2004-01-14 22:09:39 +00:00
JSBSim.cxx Remove the old WeatherCM module. 2004-03-16 20:19:07 +00:00
JSBSim.hxx Add the latest version of JSBSim including support for a Visual Reference Point 2004-02-14 10:19:56 +00:00
Makefile.am Various final tweaks for the 0.9.4.pre1 release. 2004-03-22 20:19:18 +00:00
Makefile.solo Updates. 2001-07-26 17:17:11 +00:00
README Sync with latest JSBSim changes. 2001-11-30 17:49:37 +00:00

Contents
--------

1) Introduction
2) Building with autoconf/automake
3) Contact


1) Introduction
---------------

JSBSim is a multi-platform, general purpose object-oriented Flight
Dynamics Model (FDM) written in C++. Jon Berndt and Tony Peden began
about mid-1998 writing JSBSim. As of this writing it is the default
FDM for FlightGear. JSBSim can also be run in a standalone batch mode
for testing and study. More information on JSBSim can be found at the
JSBSim home page here:

http://jsbsim.sourceforge.net

The standalone version of JSBSim can be easily built from the command
line of a unix or unix-like (CygWin/Linux/Unix/IRIX, etc.) system like
this:

make -fMakefile.solo

If you are on an IRIX machine you can use the Makefile.irix makefile.
Directions are also provided below for using traditional auto* utilities
also provided with JSBSim.


2) Building with autoconf/automake
----------------------------------

Unpack the distribution tarball (if needed - CVS users will have
downloaded the code directly) using your preferred method, and change
to the working directory. For example :

$ tar xvfz JSBSim-0.1.2.tar.gz
$ cd JSBSim-0.1.2

NOTE for CVS users: If you are using JSBSim from a CVS checkout, or
snapshot, you will need to create the initial configure script. The
commands to do this have been included in the 'autogen.sh' script, so
just :

$ ./autogen.sh

If you wish to customise your version of JSBSim, use the following to
determine any build-time options you may be interested in.

$ ./configure --help

Then :

$ ./configure

This will check your system platform, compiler and other local
configuration variables needed to build JSBSim, and generates the
necessary Makefiles. Next :

$ make

Will compile the various classes, and link the library. Finally :

$ make install

Unless specified otherwise (with --prefix configure option), this will
install 'JSBSim.a' into '/usr/local/lib'.


3) Contact
----------

For more information on JSBSim contact Jon Berndt at jsbsim@hal-pc.org.