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

Jump to navigation Jump to search
Line 312: Line 312:
# Navigate the Terminal into the '''source''' folder.
# Navigate the Terminal into the '''source''' folder.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>git clone git://git.code.sf.net/p/libplib/code libplib.git</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">git clone git://git.code.sf.net/p/libplib/code libplib.git</syntaxhighlight>
#** This will copy the needed source files into this folder '''source'''.
#** This will copy the needed source files into this folder '''source'''.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>cd '''libplib.git'''</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">cd libplib.git</syntaxhighlight>
#** This will navigate the Terminal into the folder '''libplib.git''' that was created and populated by the <code>git</code> command.
#** 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:
# Enter the below command into the Terminal:
#* <code>echo "1.8.6" > version</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">echo "1.8.6" > version</syntaxhighlight>
#**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.
#**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:
# Enter the below command into the Terminal:
#* <code>sed s/PLIB_TINY_VERSION\ \ 5/PLIB_TINY_VERSION\ \ 6/ -i src/util/ul.h</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">sed s/PLIB_TINY_VERSION\ \ 5/PLIB_TINY_VERSION\ \ 6/ -i src/util/ul.h</syntaxhighlight>
#** This is some complicated version editing.
#** This is some complicated version editing.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>git commit --all --message "Increase tiny version to 6."</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">git commit --all --message "Increase tiny version to 6."</syntaxhighlight>
#** More version patching stuff.
#** More version patching stuff.
# Create a folder named '''build-plib''' and have it placed in the '''source''' folder.
# Create a folder named '''build-plib''' and have it placed in the '''source''' folder.
Line 331: Line 331:
# Navigate the Terminal into the '''build-plib''' folder that was just created.
# Navigate the Terminal into the '''build-plib''' folder that was just created.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>cmake -D CMAKE_INSTALL_PREFIX:PATH='''fg-install''' '''libplib.git'''</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">cmake -D CMAKE_INSTALL_PREFIX:PATH=fg-install libplib.git</syntaxhighlight>
#** The two folders '''fg-install''' and '''libplib.git''' need to be replaced with the relative or absolute address of these folders. Use your favorite method.
#** The two folders '''fg-install''' and '''libplib.git''' need to be replaced with the relative or absolute address of these folders. Use your favorite method.
#** The absolute address can easily be copied and pasted with the above [[Howto:Build_and_run_FlightGear_on_Raspberry_Pi_4#Copy_Path(s)|Copy Path(s)]] method. This could be a large string, however the Terminal doesn't mind.
#** The absolute address can easily be copied and pasted with the above [[Howto:Build_and_run_FlightGear_on_Raspberry_Pi_4#Copy_Path(s)|Copy Path(s)]] method. This could be a large string, however the Terminal doesn't mind.
#* This will setup the build.
#* This will setup the build.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>make -j3</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">make -j3</syntaxhighlight>
#** This will perform the compiling.
#** This will perform the compiling.
#** The <code>-j3</code> argument will allow three of the Pi's cores to participate in the compilation.
#** The <code>-j3</code> argument will allow three of the Pi's cores to participate in the compilation.
# Enter the below command into the Terminal:
# Enter the below command into the Terminal:
#* <code>make install</code>
#* <syntaxhighlight lang="bash" inline style="border:3px dashed blue">make install</syntaxhighlight>
#** PLIB will be installed into the '''fg-install''' folder.
#** PLIB will be installed into the '''fg-install''' folder.
|  
|  
320

edits

Navigation menu