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

From Variscite Wiki
Line 60: Line 60:
== Eclipse install additional packages ==
== Eclipse install additional packages ==
Based on:
Based on:
[http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#application-development-workflow]
[http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#application-development-workflow http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#application-development-workflow]
#Start the Eclipse IDE.
#Start the Eclipse IDE.
#Make sure you are in your Workbench and select "Install New Software" from the "Help" pull-down menu.
#Make sure you are in your Workbench and select "Install New Software" from the "Help" pull-down menu.
Line 66: Line 66:
#Expand the box next to "Linux Tools" and select the LTTng - Linux Tracing Toolkit boxes.
#Expand the box next to "Linux Tools" and select the LTTng - Linux Tracing Toolkit boxes.
#Expand the box next to "Mobile and Device Development" and select the following boxes:
#Expand the box next to "Mobile and Device Development" and select the following boxes:
**C/C++ Remote Launch
##C/C++ Remote Launch
**Remote System Explorer End-user Runtime
##Remote System Explorer End-user Runtime
*Remote System Explorer User Actions
##Remote System Explorer User Actions
*Target Management Terminal
##Target Management Terminal
*TCF Remote System Explorer add-in
##TCF Remote System Explorer add-in
*TCF Target Explorer
##TCF Target Explorer
#Expand the box next to "Programming Languages" and select the Autotools Support for CDT and C/C++ Development Tools boxes.
#Expand the box next to "Programming Languages" and select the Autotools Support for CDT and C/C++ Development Tools boxes.
#Complete the installation and restart the Eclipse IDE.
#Complete the installation and restart the Eclipse IDE.

Revision as of 13:09, 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

Based on: http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#application-development-workflow

  1. Start the Eclipse IDE.
  2. Make sure you are in your Workbench and select "Install New Software" from the "Help" pull-down menu.
  3. Select Kepler - http://download.eclipse.org/releases/kepler from the "Work with:" pull-down menu.
  4. Expand the box next to "Linux Tools" and select the LTTng - Linux Tracing Toolkit boxes.
  5. Expand the box next to "Mobile and Device Development" and select the following boxes:
    1. C/C++ Remote Launch
    2. Remote System Explorer End-user Runtime
    3. Remote System Explorer User Actions
    4. Target Management Terminal
    5. TCF Remote System Explorer add-in
    6. TCF Target Explorer
  6. Expand the box next to "Programming Languages" and select the Autotools Support for CDT and C/C++ Development Tools boxes.
  7. Complete the installation and restart the Eclipse IDE.

Yocto plug-in

Create and run simple application

Create application

Create communication link

Remote debug

Remote Run