Compiling Bela projects in Eclipse » History » Version 5
Andrew McPherson, 2014-11-07 07:47 PM
1 | 1 | Andrew McPherson | h1. Compiling projects with BeagleRT |
---|---|---|---|
2 | 1 | Andrew McPherson | |
3 | 1 | Andrew McPherson | This document contains information on how to compile the BeagleRT software and upload it onto the BeagleBone Black. |
4 | 1 | Andrew McPherson | |
5 | 1 | Andrew McPherson | h2. Required tools |
6 | 1 | Andrew McPherson | |
7 | 3 | Andrew McPherson | This document assumes you have the following tools installed: |
8 | 3 | Andrew McPherson | |
9 | 1 | Andrew McPherson | * Working Linux system, either running natively or on a virtual machine |
10 | 3 | Andrew McPherson | * Mercurial version control system (http://mercurial.selenic.com). Available as a package in most Linux distributions. |
11 | 1 | Andrew McPherson | * arm-gcc hardfp compiler toolchain (i.e. @arm-linux-gnueabihf-gcc@ and similar. On Ubuntu, these can be installed from packages: |
12 | 1 | Andrew McPherson | <pre> |
13 | 1 | Andrew McPherson | sudo apt-get install gcc-arm-linux-gnueabihf |
14 | 1 | Andrew McPherson | sudo apt-get install g++-arm-linux-gnueabihf |
15 | 2 | Andrew McPherson | </pre> |
16 | 2 | Andrew McPherson | * Eclipse IDE (http://www.eclipse.org) |
17 | 1 | Andrew McPherson | * Xenomai libraries compiled for ARM hardfp _(details to come)_ |
18 | 3 | Andrew McPherson | |
19 | 3 | Andrew McPherson | h2. Getting started |
20 | 3 | Andrew McPherson | |
21 | 3 | Andrew McPherson | # Clone the BeagleRT files from the repository: |
22 | 3 | Andrew McPherson | <pre> |
23 | 3 | Andrew McPherson | hg clone https://code.soundsoftware.ac.uk/hg/beaglert |
24 | 3 | Andrew McPherson | </pre> |
25 | 3 | Andrew McPherson | # Launch Eclipse and select a workspace (creating one if necessary). |
26 | 4 | Andrew McPherson | # In the Eclipse menu bar, choose _File -> Import..._. Within the dialog box that appears, choose _General -> Existing Projects into Workspace_. Click _Next_. |
27 | 4 | Andrew McPherson | # Click the button _Select root directory_ and choose the path to the BeagleRT repository you just cloned. |
28 | 5 | Andrew McPherson | # Make sure the @BeagleRT@ project is selected, and under Options, untick _Copy projects into workspace_. Click _Finish_ to complete the project import. |