320
edits
(→OSG) |
|||
Line 564: | Line 564: | ||
==Compiling == | ==Compiling == | ||
===Download_and_compile.sh=== | |||
The following was provided by enrogue <ref>https://forum.flightgear.org/viewtopic.php?f=45&t=36922&start=20</ref> | |||
<blockquote> | |||
I'll just post this here now, I have a successful compile on Debian 10 armhf (via an LXD container on a RK3399 powered Rock960 which runs ubuntu 64bit), and on an RPi3B | |||
I can verify that the build works on the RPi4B 4GB running raspbian & uses just over 1G ram while running - so you *might* be able to squeeze into a 2G Rpi4, but I'm not sure - you probably would have issues doing a -j4 compile on a 2GB one as a couple of the compiles use over 600M per process | |||
The method: | |||
</blockquote> | |||
<syntaxhighlight lang="bash"> | |||
mkdir work | |||
cd work/ | |||
git clone https://git.code.sf.net/p/flightgear/fgmeta | |||
mkdir next | |||
cd next | |||
../fgmeta/download_and_compile.sh -j2 | |||
*wait a bit..., it will fail on in simgear* | |||
*may as well grab fgdata (depth=1 to keep the download small)* | |||
cd install/flightgear | |||
git clone --depth=1 git://git.code.sf.net/p/flightgear/fgdata | |||
cd ../.. | |||
../fgmeta/download_and_compile.sh -j2 OSG | |||
*it will fail* | |||
*grab the patch* | |||
wget -c https://sources.debian.org/data/main/o/openscenegraph-3.4/3.4.1+dfsg1-5/debian/patches/0007-Explicit-signed-char-type-for-portability-base64.patch | |||
cd openscenegraph/ | |||
*patch it* | |||
patch -p1 < ../0007-Explicit-signed-char-type-for-portability-base64.patch | |||
cd .. | |||
*you may have done these configs already* | |||
git config --global user.email "you@example.com" | |||
git config --global user.name "Your Name" | |||
*build OSG* | |||
../fgmeta/download_and_compile.sh -pn -j4 OSG | |||
*build the rest - it will pick up your compiled OSG now* | |||
../fgmeta/download_and_compile.sh -pn -j4 | |||
</syntaxhighlight> | |||
===Raspbian=== | |||
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. | 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. | ||
===Must Read=== | |||
Please read [[Building Flightgear - Raspbian]] | |||
===Dependencies=== | ===Dependencies=== |
edits