Compiling Bela projects in Eclipse » History » Version 5

Version 4 (Andrew McPherson, 2014-11-07 07:47 PM) → Version 5/36 (Andrew McPherson, 2014-11-07 07:47 PM)

h1. Compiling projects with BeagleRT

This document contains information on how to compile the BeagleRT software and upload it onto the BeagleBone Black.

h2. Required tools

This document assumes you have the following tools installed:

* Working Linux system, either running natively or on a virtual machine
* Mercurial version control system (http://mercurial.selenic.com). Available as a package in most Linux distributions.
* arm-gcc hardfp compiler toolchain (i.e. @arm-linux-gnueabihf-gcc@ and similar. On Ubuntu, these can be installed from packages:
<pre>
sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install g++-arm-linux-gnueabihf
</pre>
* Eclipse IDE (http://www.eclipse.org)
* Xenomai libraries compiled for ARM hardfp _(details to come)_

h2. Getting started

# Clone the BeagleRT files from the repository:
<pre>
hg clone https://code.soundsoftware.ac.uk/hg/beaglert
</pre>
# Launch Eclipse and select a workspace (creating one if necessary).
# In the Eclipse menu bar, choose _File -> Import..._. Within the dialog box that appears, choose _General -> Existing Projects into Workspace_. Click _Next_.
# Click the button _Select root directory_ and choose the path to the BeagleRT repository you just cloned.
# Make sure the @BeagleRT@ project is selected, and under Options, options, untick _Copy projects into workspace_. Click _Finish_ to complete the project import.