Hello World 5 - building C++ solutions for my robot

Audience

Level Advanced user Time 5 min
OS Linux only Preparation 2 hours

Preparation time is given for the case you have to install Operating system and tools prior the tutorial.

Before starting

  • Make sure you have a robot ready to use, or read the Out of the box section.

  • Make sure C++ and C++ SDK are installed on a computer running under Linux.
    If it is not the case, see C++ SDK Installation.

Let’s do it

Step Action

Get the cross-toolchain that matches your robot version (atom for V4 and later, geode for previous version), and extract it, say in /path/to/atom/ctc

Note

on linux64 you will have to install some 32bits libraries for the cross-compiler to work.

On ubuntu, you should use something like:

$ sudo apt-get install gcc-multilib libc6-dev libc6-i386

Create a toolchain using the feed from the cross-toolchain.

$ qitoolchain create cross-atom /path/to/ctc/


$ qibuild configure -c cross-atom
$ qibuild make -c cross-atom

Result

You are ready to cross-compile for OpenNAO.