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

Jump to navigation Jump to search
(7 intermediate revisions by the same user not shown)
Line 213: Line 213:
==Compiling ==
==Compiling ==
{{not done}}
{{not done}}
This is not meant to be a fast copy and past compiler method. Below, is meant to be compiling more by learning or understanding. However, there will be plenty of opportunities for copying and pasting.
===Dependencies===
Below is a list of dependencies (packages) that need to be installed before compiling.
{| class="wikitable"
|-
! Package !! Version (ref. only, as of 03-28-2020) !! Notes
|-
| cmake || 3.13.4-1 ||
|-
| g++ || 4:8.3.0-1+rpi2 ||
|-
| git || 1:2.20.1-2+deb10u1 || Needs a user account at www.github.com
|-
| make || 4.2.1-1.2 ||
|-
| sed || 4.7-1 ||
|-
| freeglut3-dev || 2.8.1-3 ||
|-
| libboost-dev || 1.67.0.1+b1 ||
|-
| libcurl4-openssl-dev || 7.64.0-4+deb10u1 ||
|-
| libdbus-1-dev || 1.12.16-1 ||
|-
| libevent-dev || 2.1.8-stable-4 ||
|-
| libfreetype6-dev || 2.9.1-3+deb10u1 ||
|-
| libglew-dev || 2.1.0-4 ||
|-
| libopenal-dev || 1:1.19.1-1 ||
|-
|libopenscenegraph-3.4-dev || 3.4.1+dfsg1-5 ||
|-
| libqt5opengl5-dev || 5.11.3+dfsg1-1+rpi1+deb10u3 ||
|-
| libqt5svg5-dev || 5.11.3-2 ||
|-
| libxi-dev || 2:1.7.9-1 ||
|-
| libxmu-dev || 2:1.1.2-2+b3 ||
|-
| pkg-config || 0.29-6 ||
|-
| qml-module-qtquick2 || 5.11.3-4 ||
|-
| qml-module-qtquick-window2 || 5.11.3-4 ||
|-
| qt5-default || 5.11.3+dfsg1-1+rpi1+deb10u3 ||
|-
| qtbase5-private-dev || 5.11.3+dfsg1-1+rpi1+deb10u3 ||
|-
| qtdeclarative5-private-dev || 5.11.3-4 ||
|-
| qttools5-dev || 5.11.3-4 ||
|}
The command <code>dpkg -s package_name</code> can be used, in the terminal to verify if a package is installed. Replace 'package_name' with the name of the dependency from the above list.
Before installing any missing dependencies, update Raspbian per the above [[Howto:Build_and_run_FlightGear_on_Raspberry_Pi_4#Update_Raspbian|Update Raspbian]] instructions. The below terminal command can be used to install any missing dependencies:
<syntaxhighlight lang="bash">
sudo apt-get install package_name
</syntaxhighlight>
====git====
When using some <code>git</code> commands you might be prompted by <code>git config --global user.email "you@example.com"</code> and or <code>git config --global user.name "Your Name"</code>. In that case a user account is needed at [http://www.github.com www.github.com]. So, before starting the compiling process it would be advisable to first go to their web page and create a free user account. After acquiring the user account, use the below commands (one at a time) in order to satisfy the above <code>git</code> requirement. Replace 'you@example.com' with your <code>git</code> account email address and also replace 'Your Name' with the user name for this account. It might be best to choose a user name without a space in it.
<syntaxhighlight lang="bash">
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
</syntaxhighlight>
Link to <code>git</code> [https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration configuration and customization] information page.


==Performance settings ==
==Performance settings ==
320

edits

Navigation menu