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

From FlightGear wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 17: Line 17:
</gallery>
</gallery>


== Update Raspbian ==
== Possible Paths ==
Use the below commands to update your Raspberry Pi:


<syntaxhighlight lang="bash">
[[File:FlightGear System.jpg|FlightGear and the Raspberry Pi family.]]
sudo apt-get update
sudo apt-get full-upgrade
</syntaxhighlight>


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.
The Raspberry Pi can run FlightGear or perform other duties. Creating avionics steam gauges to more modern touch screen avionics devices. These ancillary Raspberries can serve a standard desktop computer running FlightGear or another Raspberry running FlightGear with most of the settings set to low.


<syntaxhighlight lang="bash">
== Did You Know ==
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>


===Sun, tree and other textures===
[[File:Rendering.png|thumb|How to fix some texture issues with the Raspberry Pi4.]]
Did you know that the sun, tree and other textures can be fixed by enabling the "Cache graphics for faster loading" option, that is found in the launcher? This works for version 2020.3.5.




[[Category:Raspberry Pi]]
[[Category:Raspberry Pi]]
[[Category:Building from source‎]]
[[Category:Building from source‎]]

Latest revision as of 03:04, 19 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

Possible Paths

FlightGear and the Raspberry Pi family.

The Raspberry Pi can run FlightGear or perform other duties. Creating avionics steam gauges to more modern touch screen avionics devices. These ancillary Raspberries can serve a standard desktop computer running FlightGear or another Raspberry running FlightGear with most of the settings set to low.

Did You Know

Sun, tree and other textures

How to fix some texture issues with the Raspberry Pi4.

Did you know that the sun, tree and other textures can be fixed by enabling the "Cache graphics for faster loading" option, that is found in the launcher? This works for version 2020.3.5.