-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
164 lines (109 loc) · 4.03 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
Contents
--------
1) Introduction
2) Building with autoconf/automake
2.1) Building JSBSim libraries
3) Building with cmake
3.1) Linux
3.2) Windows MinGW
3.3) Windows MSVC 2010
3.4) Windows MSVC 2011
4) 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://www.jsbsim.org
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 [--no-configure]
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 build the JSBSim application.
2.1) Building JSBSim libraries
------------------------------
By default, the JSBSim libraries are not built. To build and install
the libraries, use:
$ ./autogen.sh --enable-libraries [--disable-static] [--enable-shared]
The configure options can be used to select what libraries to build.
$ make install
Unless specified otherwise (with --prefix configure option), this will
install JSBSim libraries into '/usr/local/lib' and JSBSim headers
into '/usr/local/include/JSBSim'.
3) Building with cmake
----------------------
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-x.y.z.tar.gz
$ cd JSBSim-x-y-z
The following usages of cmake consist in :
- making a build directory : cmake can build out of src tree. It's
very convenient in order to let the sources tree clean.
- invoking cmake : cmake has several front-ends. In the examples we
call the command line, but you can invoke the ncurses (ccmake) or
the QT GUI (cmake-gui).
- call the selected build toolchain.
Optionally, shared libraries can be built by invoking the parameter
BUILD_SHARED_LIBS
The ".." means parent directory, it shouldn't be omitted.
3.1) Linux
----------
Run the following commands :
$ mkdir build_linux
$ cd build_linux
$ cmake .. [-DBUILD_SHARED_LIBS]
$ make
$ make install [DESTDIR=_install]
To uninstall you can call :
$ xargs rm < install_manifest.txt
3.2) Windows MinGW
------------------
Tested with MinGW of CodeBlocks 12.11.
$ mkdir build_mingw
$ cd build_mingw
$ "c:\Program Files\CodeBlocks\MinGW\mingwvars.bat"
$ cmake -G "MinGW Makefiles" .. [-DBUILD_SHARED_LIBS]
$ mingw32-make
$ mingw32-make install [DESTDIR=_install]
3.3) Windows MSVC 2010
----------------------
Tested with MSVC 2010 express SP1.
$ mkdir build_msvc_10
$ cd build_msvc_10
$ "c:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
$ cmake -G "Visual Studio 10" .. [-DBUILD_SHARED_LIBS]
$ msbuild jsbsim.sln
You can also open jsbsim.sln with visual studio IDE.
3.4) Windows MSVC 2011
----------------------
Tested with MSVC 2012 express.
$ mkdir build_msvc_11
$ cd build_msvc_11
$ "c:\Program Files\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
$ cmake -G "Visual Studio 11" .. [-DBUILD_SHARED_LIBS]
$ msbuild jsbsim.sln
You can also open jsbsim.sln with visual studio IDE.
4) Contact
----------
For more information on JSBSim contact Jon Berndt at [email protected].