Code Monkey home page Code Monkey logo

xc-gcc_4.9.3_mac_rpi's Introduction

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

xc-gcc_4.9.3_mac_rpi's People

Contributors

mikemitterer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.