VAR-SOM-MX6 Yocto GS eclipse: Difference between revisions

From Variscite Wiki
Line 52: Line 52:
Set your workspace:<br/>
Set your workspace:<br/>
[[File:Eclipse_ws.jpg]]<br/>
[[File:Eclipse_ws.jpg]]<br/>
You can select any folder you like.
You can select any folder you like.<br/>
Close the "welcome window".
Close the "welcome window".<br/>
You should be at:<br/>
You should be at:<br/>
[[File:Eclipse_main.jpg]]<br/>
[[File:Eclipse_main.jpg]]<br/>

Revision as of 12:46, 23 January 2014

Programming with Eclipse and Yocto

Variscite added the required packages to the build images fsl-image-test and fsl-image-gui to enable Eclipse based Yocto development. This guide will describe how to install and use Eclipse/Yocto to develop application to run on VAR-SOM-MX6

Host tools

Build

make sure you are your build directory and environment are set correctly.

$ . ./setup-environment build_mx6q/

Build the tools:

$ bitbake meta-ide-support
$ bitbake meta-toolchain adt-installer

The result are a tools installer

$ ls tmp/deploy/sdk/

The results should be:
adt_installer.tar.bz2 poky-eglibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.5.1.sh

Install

tmp/deploy/sdk/poky-eglibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.5.1.sh

When system prompt "Enter target directory for SDK (default: /opt/poky/1.5.1):" hit enter.

When system prompt "You are about to install the SDK to "/opt/poky/1.5.1". Proceed[Y/n]?" hit Y and enter. An install log should look like:

tmp/deploy/sdk/poky-eglibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.5.1.sh Enter target directory for SDK (default: /opt/poky/1.5.1): You are about to install the SDK to "/opt/poky/1.5.1". Proceed[Y/n]?Y Extracting SDK...done Setting it up...done SDK has been successfully set up and is ready to be used.

Eclipse installation

The following steps will guide you how to download and install Eclipse Keler CDT SR1.

Download and install

Download from:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-cpp-kepler-SR1-linux-gtk-x86_64.tar.gz

$ cd ~/
$ tar xvf ../Downloads/eclipse-cpp-kepler-SR1-linux-gtk-x86_64.tar.gz

Run Eclipse:

$ eclipse/eclipse &

Set your workspace:
Eclipse ws.jpg
You can select any folder you like.
Close the "welcome window".
You should be at:
Eclipse main.jpg

Eclipse install additional packages

Yocto plug-in

Create and run simple application

Create application

Create communication link

Remote debug

Remote Run