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

Jump to navigation Jump to search
(4 intermediate revisions by 2 users not shown)
Line 293: Line 293:


Link to <code>git</code> [https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration configuration and customization] information page.
Link to <code>git</code> [https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration configuration and customization] information page.
===Copy Path(s)===
[[File:Copy Path(s).jpeg|thumb|150px|Easy way to copy the path of a file or folder.]]
During the compiling process there will be times when the path of a file or folder is needed for a Terminal command. One easy GUI short cut is to right click on the file or folder to pull up an option list. Find the option 'Copy Path(s)' and click on it. The path of the file or folder will be copied. Next, in the Terminal, click on 'Edit' at the top of the Terminal window and then click on 'Paste' in order to past the link into the Terminal. See the screen shot to the left.
===Location of Files===
The SD card performs well for common computer tasks and running FlightGear. However, compiling large programs could wear out the SD card before it's time. This is an excellent application for a SSD drive. Especially if many compiled versions of FlightGear are planned. For that reason this Wiki will choose to compile and install FlightGear on a [[Howto:Build_and_run_FlightGear_on_Raspberry_Pi_4#Hard_Drives|SSD drive]].
This is a good time to create some needed folders on the SSD. For this Wiki the folder 'FlightGear' was created in the root of the SSD. Within this newly created folder 'FlightGear', create two more folders named 'fg-install' and 'source'. Use your favorite method to navigate and create folders, whether it be the Terminal or GUI. Furthuremore, these files can have other names as long as those other names are globally used.
===PLIB===
Compiling algorithm for [[PLIB]].
* Navigate the Terminal into the 'source' folder.
* Enter the below command into the Terminal:
** <code>git clone git://git.code.sf.net/p/libplib/code libplib.git</code>
*** This will copy the needed source files into this folder 'source'.
* Enter the below command into the Terminal:
** <code>cd libplib.git</code>
*** This will navigate the Terminal into the folder 'libplib.git' that was created and populated by the <code>git</code> command.
* Enter the below command into the Terminal
** <code>echo "1.8.6" > version</code>
***This will edit the file 'version' that is in this folder. This file can also be modified with a text editor, even via a GUI.
* Enter the below command into the Terminal:
** <code>sed s/PLIB_TINY_VERSION\ \ 5/PLIB_TINY_VERSION\ \ 6/ -i src/util/ul.h</code>
*** This is some complicated version editing.
* Enter the below command into the Terminal:
** <code>git commit --all --message "Increase tiny version to 6."</code>
*** More version patching stuff.
* Create a folder named 'build-plib' (no quotes) and have it placed in the 'source' folder.
** The <code>mkdir</code> command or a GUI method can be used to create this folder.
*** In other words; FlightGear/source/build-plib
* Navigate the Terminal into the 'build-plib' folder that was just created.


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

edits

Navigation menu