Menu

Downloading and Building

David Culp

Dependencies

Qt Version
Tested with Qt5.15.2.

Qt Extra Modules
QtJSBSim uses some Qt modules that are usually not included by default. On linux systems they can be gotten using:

sudo apt-get install libqt5svg5 libqt5svg5-dev


SDL
SDL can be fetched from their website at https://libsdl.org/. SDL2 or greater is needed.


JSBSim
JSBSim can be fetched from GitHub at https://github.com/JSBSim-Team/jsbsim or by using:

git clone https://github.com/JSBSim-Team/jsbsim.git

You can instead download a zip file of the source code.



Downloading QtJSBSim from sourceforge using git

You can download the source code from sourceforge using the following command:

git clone git://git.code.sf.net/p/qtjsbsim/code qtjsbsim-code

This will create a qtjsbsim-code directory somewhere in your directory structure (depending on OS).

Building

Next step is to find and "cd" into the qtjsbsim-code directory:

$ cd qtjsbsim-code

It's best to build inside a directory separate from the source, so let's make a build directory:

qtjsbsim-code$ mkdir build
qtjsbsim-code$ cd build

Once inside our build directory we use standard cmake commands to build:

build$ cmake ..
build$ make

This will create an executable at qtjsbsim-code/build/src/qtjsbsim
Note that the "ini" file is located at qtjsbsim-code/src/qtjsbsim.ini
Note also that these are unix style commands. In Windows the commands
will look a little different, but the workflow is the same AFAIK.

Running

First, open the ini file and edit the line which defines the path to your JSBSim executable. For instance, on my system I've built JSBSim such that the executable is located at /home/dave/JSBSim/build/src/JSBSim.

From your build directory "cd" into the src directory and run qtjsbsim:

build$ cd src
src$ ./qtjsbsim



Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.