build
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
build [2019/11/15 17:11] – [Getting the Sources with a Script] graf | build [2023/05/31 16:37] (current) – [Preparations] ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Build the Software ====== | ====== Build the Software ====== | ||
- | The application is developed on a Linux host machine and can then be deployed to the board. | + | The application is developed on a Linux host machine and can then be deployed to the board. The software itself can be studied on [[https:// |
===== Preparations ===== | ===== Preparations ===== | ||
- | You need any 64 bit Linux version (VM or standalone). We suggest using Ubuntu. Please make sure to have all necessary tools available. | + | Install our Linux image on the target and install the necessary |
- | + | ||
- | < | + | |
- | $ sudo apt-get install make cmake git g++ | + | |
- | </ | + | |
- | + | ||
- | As cross tool chain, | + | |
- | If a Linux host is used in a virtual machine, a [[https://lubuntu.net/downloads/|lightweight Ubuntu distribution]] is recommended. In case you are using a newer Ubuntu version, you have to add //xenial// to your sources list, see [[https://askubuntu.com/questions/1036108/install-gcc-4-9-at-ubuntu-18-04]]. | + | |
+ | ===== Getting the Sources ===== | ||
- | ===== Getting | + | Fetch the [[https:// |
- | A git repository | + | |
< | < | ||
- | $ git clone https:// | + | $ git clone https:// |
- | $ cd eeros-project/delta | + | $ cd eeduro/delta |
</ | </ | ||
- | Run the '' | + | Run the '' |
< | < | ||
$ ./clone.sh | $ ./clone.sh | ||
</ | </ | ||
- | ===== Compile Roboticscape Library ===== | ||
- | The library for the roboticscape must be compiled manually. Though the library is already on the target, we must also have it on the host, in order to be able to link an application. At the time of writing, the Beaglebone Blue boards are shipped with an image that has the robotics cape library version 0.3.4 installed. Therefore, it is highly recommended to use this version. The bbblue-eeros wrapper library was implemented to work with the robotics cape library v0.3.4. Newer version were not tested yet. When using the clone.sh script, the correct version is checked out per default and no additional step is necessary. \\ | ||
- | If not yet installed, the cross toolchain must be installed on the host machine with the following command | ||
- | < | ||
- | $ sudo apt-get install g++-4.9-arm-linux-gnueabihf | ||
- | </ | ||
- | If this fails and your Linux version does not offer the right version of the cross toolchain in its repositories, | ||
- | |||
- | To compile the library, change into: | ||
- | < | ||
- | $ cd librobotcontrol/ | ||
- | </ | ||
- | and edit the '' | ||
- | < | ||
- | CC := gcc | ||
- | LINKER := gcc | ||
- | </ | ||
- | to | ||
- | < | ||
- | CC := arm-linux-gnueabihf-gcc-4.9 | ||
- | LINKER := arm-linux-gnueabihf-gcc-4.9 | ||
- | </ | ||
- | This change is necessary because the library must be compiled with the cross compiler. Now, the roboticscape library can be compiled using make. | ||
- | < | ||
- | $ make | ||
- | </ | ||
===== Compile ===== | ===== Compile ===== | ||
- | + | Start the compilation of the delta application with | |
- | Change back into your project directory and start the compilation of EEROS, the hardware wrapper library, and the delta application with | + | |
< | < | ||
$ ./make.sh | $ ./make.sh |
build.1573834267.txt.gz · Last modified: 2019/11/15 17:11 by graf