Crafty Bytes

Musings of an attentive programmer.

Cross-Compiling for Raspberry Pi Using CMake on Linux

Raspberry Pi is a great device with a (relatively) powerful GPU, but due to its low-end CPU compiling C/C++ applications on the machine takes too long to be feasible for anything but the simplest programs. Luckily, setting up a cross-compiling toolchain that produces binaries compatible with Raspberry Pi is a rather straightforward affair on Linux.