-
Notifications
You must be signed in to change notification settings - Fork 35
Building on Mac
This page provides details regarding building the SDK under Mac OS X. It is intended to compliment the Building the SDK guide.
WARNING: As of June 22nd, 2014, the arm-none-linux-gnueabi-gcc package available from MacPorts is broken and will not build. It does not appear that anyone is currently maintaining the arm-none-linux-gnueabi-gcc port. If anyone knows of a way around this - perhaps another arm cross toolchain for Mac OSX, please let us know!
Using the port
command from MacPorts or the brew
command from Homebrew, the required dependencies can be installed by installing the latest OSX Command Line Tools, and the following packages:
gmp mpfr libmpc bison flex texinfo
Note: This may give an error message as bison is not installable via Homebrew. In that case, try again without bison and ensure bison is installed by running
bison --version
Also note: In some cases, the build system may not detect installed gmp, mpfr and libmpc libraries. In this case it is often easier to download the libraries from ftp://gcc.gnu.org/pub/gcc/infrastructure/ (they are called gmp-4.3.2.tar.bz2
, mpfr-2.4.2.tar.bz2
and mpc-0.8.1.tar.gz
), extracting them into either the gcc
or src
folder and renaming the directories to remove the version number (such that for example src/mpfr/configure
exists).
You will also need to install the ARM/Linux cross toolchain package for OSX. For Macports the package name is:
arm-none-linux-gnueabi-gcc
Once the prerequisites have been installed, the SDK can be compiled and installed the same as with Linux, clone the source code as described in Downloading the SDK and building as described in Building the SDK.
If you have not been able to build the SDK, check/post on the Parallella SDK Forums to see if someone else has been successful. Alternatively, feel free to submit a bug report or patch.