Building locally on a Raspberry Pi can be slow. The most common way around this is to cross-compile, which is much quicker, but requires more setup.1 There is also a third alternative, distcc
, which distributes the compilation to remote computers in a transparent manner. Setting up distcc
is somewhat simpler compared to cross-compiling, but we still gain speed compared to local build.
The distcc
program can distribute builds across several machines on a network.2 Today we will setup and compile CANlib on an old Raspberry Pi Model B running Rasbian 8.0 using distcc
to distribute the compilation onto a Linux computer running Ubuntu 16.04.