Skip to content

Instantly share code, notes, and snippets.

View c-mendoza's full-sized avatar

Cris(tobal) Mendoza c-mendoza

View GitHub Profile
@c-mendoza
c-mendoza / config.linuxarmv6l.default.mk
Created December 29, 2019 22:54
cross-tools OF makefile
###############################################################################
#### NATIVE MACOS -> rPi CROSS-COMPILATION MOD
# Version 0.2
# Cristobal Mendoza
# c@matadata.com
# More info at:
# https://gist.github.com/c-mendoza/6bf84b42ee1bdc094ebcf19fcf3904b8
###############################################################################
@c-mendoza
c-mendoza / cross-tools-setup.md
Last active November 19, 2021 16:20
openFrameworks Cross-Compiling Environment for MacOS > RPi

Cross-compiling openFrameworks apps from MacOS to RaspberryPI

Version 0.2.1

If you use macOS you might be able to use a cross-compilation environment that runs on macOS, but produces binaries that run on a RaspberryPI. Native speed and no VM's required! The environment consists of a disk image that contains a cross-platform toolchain created using crosstool-ng, and an rpi-root folder containing necessary files from Raspbian Buster.

References

The cross-compiler was created based on instructions written by Jared Wolff. The OF side of the environment was based on jcleave's post on cross-compilers.

Compatibility

Compilation has only been tested on MacOS 10.14 using openFrameworks 0.10.1. Binaries produced are armv6 and have only been tested on a Raspbian Stretch and Buster on a RPi 2B. Running on earlier