Skip to content

Building on Linux

Ola Jeppsson edited this page Oct 3, 2019 · 7 revisions

This page provides details regarding getting ready to build the SDK under Linux. It is intended to complement the Building the SDK guide.

The Building the SDK build script has been successfully tested under Debian 6.0, Ubuntu 12.10, and Ubuntu 14.04.

Warning: The builds are currently confirmed to be broken with very recent development tools (e.g. latest Arch Linux). In a worst case scenario, you can run Debian 6 in a virtual machine to perform the build, this is confirmed to work.


Debian / Ubuntu

With a standard Debian Desktop or Ubuntu installation, the following packages need to be installed in order to build the SDK:

build-essential git bison flex libgmp3-dev libncurses-dev libmpc-dev libmpfr-dev texinfo xzip lzip zip

The ARM/Linux cross-toolchain can be installed from the following packages:

 gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

These packages can be installed via apt-get install, the Synaptic Package Manager, or the Ubuntu Software Center (US) or Centre (everywhere else).


Fedora

With a standard Fedora Desktop install, these are instead named:

make automake gcc gcc-c++ kernel-devel git bison flex gcc gmp-devel libmpc-devel ncurses-devel mpfr-devel texinfo xz lzip zip compat-guile18 texinfo-tex

The default ARM/Linux cross-toolchain that is available on Fedora uses the softfloat ABI. Therefore it cannot be used with the Parallella Linux distribution (Linaro Nano). If you want to compile binaries for Linaro Nano on Fedora we recommend that you download a stable toolchain from Linaro here:

https://wiki.linaro.org/WorkingGroups/ToolChain

The Fedora softfloat ARM/Linux cross-toolchain can be installed from the following packages:

gcc-arm-linux-gnu g++-arm-linux-gnu

These packages can be installed via yum install or via Add/Remove Software which is found under Applications.


Other distributions

Building the SDK should work with other Linux distributions, as long as similar dependencies have been installed. If you have successfully built and installed the SDK, feel free to add the distribution to the list of distributions above.

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.

You can’t perform that action at this time.