Difference between revisions of "Howto:Build and run FlightGear on Raspberry Pi 4"

From FlightGear wiki
Jump to navigation Jump to search
Line 29: Line 29:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo rpi-update          (DO NOT USE)
 
sudo rpi-update          (DO NOT USE)
</syntaxhighlight>
 
 
==Backtrace using gdb: and Download_and_compile.sh==
 
Tracking down a crash with <code>double free corruption (fasttop)</code>
 
 
Set environment variable:
 
<syntaxhighlight>
 
set environment MALLOC_CHECK_ 2
 
</syntaxhighlight>
 
 
Next run FlightGear with debug:
 
<syntaxhighlight lang="bash">
 
./run_fgfs_debug.sh --launcher
 
</syntaxhighlight>
 
 
Use the below gdb commands <code> handle SIGPIPE nostop and handle SIG32 nostop</code>  to skip innocent events:
 
<syntaxhighlight>
 
gdb: handle SIGPIPE nostop
 
gdb: handle SIG32 nostop
 
</syntaxhighlight>
 
 
Use <code>r</code> within gdb to run FlightGear:
 
<syntaxhighlight>
 
gdb: r
 
</syntaxhighlight>
 
 
After the crash use the gdb command <code>bt</code> to print the backtrace:
 
<syntaxhighlight>
 
gdb: bt
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 03:06, 6 January 2021


It is now possible to run FlightGear on a Raspberry Pi, starting with the model Pi 4. The objective of Howto:Build and run FlightGear on Raspberry Pi 4 is to introduce Pi users to FlightGear and possibly FlightGear users to the Raspberry Pi family. One of the main objectives of the Raspberry Pi is education. Hopefully this marriage will introduce some young programmers to FlightGear. Although this will mainly deal with the Pi 4, other models may find applications in the area of flight panels and instruments.

Gallery

Update Raspbian

Use the below commands to update your Raspberry Pi:

sudo apt-get update
sudo apt-get full-upgrade

Do not use the below update command unless you know how and why to use it. This command will install experimental software that has a good chance of breaking your operating system. It is like flying into a thunder storm cloud.

sudo rpi-update          (DO NOT USE)