mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
09b09ad288
According to http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html " In the past ArduPilot required a special version of JSBSim. As of December 2018 that is no longer the case, and we can use the standard JSBSim releases. " Moreover currently build-jsbsim.sh is failing with error: ../../src/models/propulsion/FGTurbine.h:297:3: error: ‘FGParameter’ does not name a type; did you mean ‘FGThruster’? FGParameter *N1SpoolUp; ^~~~~~~~~~~
24 lines
764 B
Bash
Executable File
24 lines
764 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
echo "---------- $0 start ----------"
|
|
|
|
# don't waste time rebuilding jsbsim if we already have a working copy of it
|
|
# this can save ~10 or minutes on some hardware
|
|
JSBBINARY=~/jsbsim/build/src/JSBSim
|
|
if [ -f $JSBBINARY ]; then
|
|
echo "$JSBBINARY exists, skipping build. (to force rebuild then remove this file and re-run) "
|
|
else
|
|
echo "$JSBBINARY does not exist, building it in your home folder:"
|
|
cd ~
|
|
rm -rf jsbsim
|
|
git clone git://github.com/JSBSim-Team/jsbsim.git
|
|
cd jsbsim
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_CXX_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_C_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_BUILD_TYPE=Release ..
|
|
make -j2
|
|
fi
|
|
echo "---------- $0 end ----------"
|