Project

General

Profile

Eclipse Oxygen and Yocto 2.4.4 (Rocko)

Install the yocto plugin

  1. In eclipse go to Help->Install New Software...
  2. For Work with select All Available Sites
  3. Check Mobile and Device Development
  4. For Work with: enter the following:
    http://downloads.yoctoproject.org/releases/eclipse-plugin/2.4.4/oxygen/
    
  5. Check both the following packages:
    Yocto Project Documentation plug-in
    Yocto Project SDK Plug-in
    
  6. Click next
  7. Click next
  8. Accept the license agreement and click finish

Setting up Eclipse

  1. Go to Window->Preferences
  2. Click Yocto Project SDK
  3. Click Standalone pre-built toolchain
  4. Fill in Toolchain Root Location (ie /opt/poky/2.4.4)
  5. Fill in Sysroot Location (ie /opt/poky/2.4.4/sysroots/cortexa9hf-neon-poky-linux-gnueabi)
  6. Click Save As and enter a name (ie MitySOM-5CSX 2.4.4)
  7. Click Apply and Close

Build a helloworld Application

  1. Go to File->New->Project
  2. Pick C++ Project and click Next
  3. Pick Yocto Project SDK Autotools Project->Hello World
  4. Enter a name and click finish
  5. Go to the project navigator and open hello.cpp under src
  6. Click Project->Build All

Debug helloworld Application

  1. Go to Run->Debug Configuration...
  2. Go to C/C++ Remote Application->hello_gdb_arm-poky-linux-gnueabi
  3. Click New next to Connection
  4. Select SSH
  5. Enter all the details for the remote board and Click Enter
  6. Set the Remote Absolute Path of where it will run (ie /home/root/hello)
  7. Click Debug

Importing an Autotools Project and Setting it up to use the yocto SDK

  1. Go to File->Import
  2. Select C/C++->Existing Code as Autotools Project
  3. Click Next
  4. Fill your project info and select finish
  5. Right click the project and select Properties
  6. Click Project Natures
  7. Click Add
  8. Add YoctoSDKAutotoolsNature and YoctoSDKNature
  9. Click Apply and Close
  10. You might also need to add the lib include of the sysroot to C/C++ General->Paths and Symbols so the index and find them all. For example:
    ${Sysroot}/usr/include/
    

Go to top
Add picture from clipboard (Maximum size: 1 GB)