7ceb85d454
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. |
||
---|---|---|
.. | ||
filtersjb | ||
.cvsignore | ||
AUTHORS | ||
FGAerodynamics.cpp | ||
FGAerodynamics.h | ||
FGAircraft.cpp | ||
FGAircraft.h | ||
FGAtmosphere.cpp | ||
FGAtmosphere.h | ||
FGAuxiliary.cpp | ||
FGAuxiliary.h | ||
FGCoefficient.cpp | ||
FGCoefficient.h | ||
FGColumnVector3.cpp | ||
FGColumnVector3.h | ||
FGColumnVector4.cpp | ||
FGColumnVector4.h | ||
FGConfigFile.cpp | ||
FGConfigFile.h | ||
FGDefs.h | ||
FGEngine.cpp | ||
FGEngine.h | ||
FGFactorGroup.cpp | ||
FGFactorGroup.h | ||
FGFCS.cpp | ||
FGFCS.h | ||
FGFDMExec.cpp | ||
FGFDMExec.h | ||
FGfdmSocket.cpp | ||
FGfdmSocket.h | ||
FGForce.cpp | ||
FGForce.h | ||
FGGroundReactions.cpp | ||
FGGroundReactions.h | ||
FGInertial.cpp | ||
FGInertial.h | ||
FGInitialCondition.cpp | ||
FGInitialCondition.h | ||
FGJSBBase.cpp | ||
FGJSBBase.h | ||
FGLGear.cpp | ||
FGLGear.h | ||
FGMassBalance.cpp | ||
FGMassBalance.h | ||
FGMatrix33.cpp | ||
FGMatrix33.h | ||
FGModel.cpp | ||
FGModel.h | ||
FGNozzle.cpp | ||
FGNozzle.h | ||
FGOutput.cpp | ||
FGOutput.h | ||
FGPiston.cpp | ||
FGPiston.h | ||
FGPosition.cpp | ||
FGPosition.h | ||
FGPropeller.cpp | ||
FGPropeller.h | ||
FGPropertyManager.cpp | ||
FGPropertyManager.h | ||
FGPropulsion.cpp | ||
FGPropulsion.h | ||
FGRocket.cpp | ||
FGRocket.h | ||
FGRotation.cpp | ||
FGRotation.h | ||
FGRotor.cpp | ||
FGRotor.h | ||
FGScript.cpp | ||
FGScript.h | ||
FGSimTurbine.cpp | ||
FGSimTurbine.h | ||
FGState.cpp | ||
FGState.h | ||
FGTable.cpp | ||
FGTable.h | ||
FGTank.cpp | ||
FGTank.h | ||
FGThruster.cpp | ||
FGThruster.h | ||
FGTranslation.cpp | ||
FGTranslation.h | ||
FGTrim.cpp | ||
FGTrim.h | ||
FGTrimAxis.cpp | ||
FGTrimAxis.h | ||
FGTurbine.cpp | ||
FGTurbine.h | ||
FGUtility.cpp | ||
FGUtility.h | ||
JSBSim.cxx | ||
JSBSim.hxx | ||
Makefile.am | ||
Makefile.solo | ||
README |
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.