1,316
edits
Praetorian (talk | contribs) |
Praetorian (talk | contribs) |
||
Line 3: | Line 3: | ||
== Installing the official Raspberry Pi cross-compiler on PC == | == Installing the official Raspberry Pi cross-compiler on PC == | ||
We will clone the Raspberry Pi tools repository which includes the cross-compiler we need: | We will clone the [https://github.com/raspberrypi/tools Raspberry Pi tools repository] which includes the cross-compiler we need: | ||
git clone https://github.com/raspberrypi/tools.git | <nowiki>git clone https://github.com/raspberrypi/tools.git</nowiki> | ||
It will get cloned to a directory called ''tools'' at your current location. | |||
PATH | Add it to the ''PATH'' environment variable so that we have the cross-compiler binaries available from our scummvm building directory. For example, if my Raspberry Pi ''tools'' repository ended cloned in ''tools'' under my ''home'' directory, I would do: | ||
After adding the | <nowiki>PATH=$PATH:$HOME/tools/arm-bcm2708/arm-linux-gnueabihf/bin</nowiki> | ||
After adding the cross-compiler executables directory to ''PATH'', we should be able to run ''arm-linux-gnueabihf-gcc'', ''arm-linux-gnueabihf-g++'', etc... just try. They should yield an error because you pass them no input files, but that's expected. It's just a test so we know we have the cross-compiler installed and accessible. | |||
== Installing the needed Raspberry Pi headers and libraries on PC == | == Installing the needed Raspberry Pi headers and libraries on PC == |
edits