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!
-
ct-ng 1.22
brew install crosstool-ng -
Raspberry Pi -- Cross Compiling on Mac OSX
By far the best infos I could find on the net -
arm-rpi-4.9.3-linux-gnueabihf.config
From Raspberry-Tools on GH but this config does not work on Mac -
Nerves, nerves, nerves and a lot of reading and googling
-
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!
Here you have it: arm-rpi-linux-gnueabihf.cmake
At the time of writing: CLion 2016.3.2 - which got nice Toolchain-support in the last release!
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
If this repo is helpful for you - please
- (Circle) me, follow me on
- Twitter / MikeMitterer or on
It would be also cool if you star this repo here on GitHub