← Back to Deploy

1. Introduction

In this section you will find all the instructions required to set up a cross development and debugging environment for applications on top of Open Enea Linux. Along with the instructions, you will have a series of video tutorials demonstrating each step.

2. Download Tool Suite

Download Enea Eclipse Tool Suite. Open a terminal (host):

$ mkdir ~/OEL_Dev_Tools
$ cd ~/OEL_Dev_Tools
$ wget http://www.openenealinux.org/downloads/Enea-Linux-Eclipse_3.1.tar.gz
$ tar -xvzf Enea-Linux-Eclipse_3.1.tar.gz

You can also download it here, if you prefer.

3. Cross-Development

3.1 Eclipse Start Up

Start Enea Linux Eclipse and select your workspace:

$ cd eclipse
$ ./eclipse &

Select your workspace and close the welcome tab.

3.2 Remote Connection

Now we are going to connect Eclipse to our target. Eclipse supports several types of remote connections: in Open Enea Linux, Target Communication Framework (TCF) connection is used. This type of connection requires that a corresponding service (TCF agent) is enabled and running on the target. Open Enea Linux already comes with TCF agent package, so there is already a TCF agent daemon running, but if it didn’t, it would be this simple to get it: “smart install tcf-agent”.

This a demonstration of how to set up a remote connection:

1. Window → Open Perspective → Other → Remote System Explorer.
2. File → New → Other → Remote System Explorer → Connection → TCF
3. Enter Host Name (IP address of the target) and Connection Name → Finish

3.3 Create ADT Project

First you need to download the toolchain:

$ mkdir ~/OEL_Dev_Tools/toolchain
$ cd ~/OEL_Dev_Tools/toolchain
$ wget http://www.openenealinux.org/repo/sdk/[target]/[32b_or_64b_toolchain]

Then install it:

$ sudo chmod 775 [toolchain_name]-toolchain-2014-01-01.sh
$ ./[toolchain_name]-toolchain-[build_date].sh
Enter target directory for SDK (default: /opt/oel/2014-01-01): /opt/oel/

Alternatively you can also get it from here.

Watch this video tutorial about how to set up an Application Development Toolkit (ADT) project

Window → Preferences → Yocto Project ADT → Cross Compiler Options:
- Standalone pre-built toolchain
- Toolchain Root Location: /opt/oel/
- Sysroot Location: /opt/oel/sysroots/
- Target Architecture: Select applicable

File → New → C Project → Select (Yocto Project ADT Autotools Project – Hello World ANSI C Autotools Project → Project Name: “Ping” → Author: Chuck Norris → Finish

3.4 Cross-Compiling & Remote Debugging

Once you have created an ADT project, download Ping program to be used as debug example:

$ mkdir ~/OEL_Dev_Tools/Ping
$ cd ~/OEL_Dev_Tools/Ping
$ wget http://www.openenealinux.org/downloads/ping.c

Now you are ready to watch Adrian’s demonstration of cross compiling and remote debugging:

Right click on project name (Ping in our case) → Reconfigure Project
Check for “Operation Successful” in Eclipse Console window.
Right click on project name → Build Project
Verify logs in Console to ensure it has built, and see resulting binaries in Project Explorer window
Run → Debug Configurations → Select resulting Debug Configuration: Ping_gdb_:
- Remote Absolute File Path for C/C++ Application: “~/OEL_Dev_Tools/Ping”
- Create a Connection, unless you already have one (see 3.2 Remote Connection). Select it.
- Arguments Tab → Add as Program argument
- Click Debug
- Authenticate

3.5 Other

Want some more? Check out Enea’s latest development tools’ videos here.
Questions? Visit the mailing list archive.
↑ Go up