No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
README.md
arm-rpi-linux-gnueabihf.zip

README.md

GCC 4.9.3 cross-compiler for Raspberry Pi (supports Pi 1) on Mac

It's hard but it's possible! (tested on 10.11.6)

I took me days and a lot of anger to compile this gcc-version on my Mac
Clang is a nice compiler but ct-ng support for Mac/Clang is quite poor.

The guys behind Raspberry-PI.org think the whole world develops on Linux...

Anyways - if this repo helps other developers to avoid reinventing the wheel over and over again I met my goals!

What I used to compile the whole thing

If you want to compile it yourself

  • Take the config-file from "config"-Folder, rename it to .config

  • Adapt the paths set in my config-file to your needs, search for
    /Volumes/RPi-...
    I'm using zwo case sensitive disks: RPi-EABI and RPi-EABI-small
    You know what I mean if you read the
    instructions on Raspberry Pi -- Cross Compiling on Mac OSX

  • Make sure these two lines are still in your .config before you start with ct-ng build

CT_WANTS_STATIC_LINK=n
CT_CC_STATIC_LIBSTDCXX=n

And now - cross your fingers and hope the best!

Which toolchain do I use

Here you have it: arm-rpi-linux-gnueabihf.cmake

IDE

At the time of writing: CLion 2016.3.2 - which got nice Toolchain-support in the last release!

How to install the cross-compiler

Unpack it! ;-)
As you can see in my toolchain-file - I've copied the arm-rpi-linux-gnueabihf folder to

/usr/local/Mike/arm-rpi-linux-gnueabihf

Adapt this to your needs

Support

If this repo is helpful for you - please

It would be also cool if you star this repo here on GitHub