Using distcc to cross compile for Raspberry Pi
My post here is based off the following guide: http://www.openframeworks.cc/setup/raspberrypi/Raspberry-Pi-DISTCC-guide.html
This guide assumes you are familiar with compiling and have all required build tools installed.
Setup your Ubuntu PC
Install the following:
Grab the Raspberry Pi compiler for Linux and remember where you’ve placed it:
I’ll refer to this path as $RPI_TOOLS from now on.
Edit distcc’s config file to have it start on boot with appropriate options.
Edit /etc/default/distcc and change the following:
Now edit the PATH variable for distcc so it can find the Raspberry Pi compiler. Replace $RPI_TOOLS with the path to where you cloned the compiler.
Start the distcc daemon.
To see the log output of distccd while you’re calling compile at the last step below you can:
On the Raspberry Pi
Set your distcc hosts on your RPi and add your Ubuntu PC’s ip to the hosts file.
Now set your make flags to compile with distcc Replace the number 8 below with the number of CPU cores on your distcc server for multiple simultaneous compiling threads.
Now it’s as simple as going to the directory of your projects Makefile and calling: