Eclipse Oxygen and Yocto 2.4.4 (Rocko)¶
Install the yocto plugin¶
- In eclipse go to Help->Install New Software...
 - For Work with select All Available Sites
 - Check Mobile and Device Development
 - For Work with: enter the following:
http://downloads.yoctoproject.org/releases/eclipse-plugin/2.4.4/oxygen/
 - Check both the following packages:
Yocto Project Documentation plug-in Yocto Project SDK Plug-in
 - Click next
 - Click next
 - Accept the license agreement and click finish
 
Setting up Eclipse¶
- Go to Window->Preferences
 - Click Yocto Project SDK
 - Click Standalone pre-built toolchain
 - Fill in Toolchain Root Location (ie /opt/poky/2.4.4)
 - Fill in Sysroot Location (ie /opt/poky/2.4.4/sysroots/cortexa9hf-neon-poky-linux-gnueabi)
 - Click Save As and enter a name (ie MitySOM-5CSX 2.4.4)
 - Click Apply and Close
 
Build a helloworld Application¶
- Go to File->New->Project
 - Pick C++ Project and click Next
 - Pick Yocto Project SDK Autotools Project->Hello World
 - Enter a name and click finish
 - Go to the project navigator and open hello.cpp under src
 - Click Project->Build All
 
Debug helloworld Application¶
- Go to Run->Debug Configuration...
 - Go to C/C++ Remote Application->hello_gdb_arm-poky-linux-gnueabi
 - Click New next to Connection
 - Select SSH
 - Enter all the details for the remote board and Click Enter
 - Set the Remote Absolute Path of where it will run (ie /home/root/hello)
 - Click Debug
 
Importing an Autotools Project and Setting it up to use the yocto SDK¶
- Go to File->Import
 - Select C/C++->Existing Code as Autotools Project
 - Click Next
 - Fill your project info and select finish
 - Right click the project and select Properties
 - Click Project Natures
 - Click Add
 - Add YoctoSDKAutotoolsNature and YoctoSDKNature
 - Click Apply and Close
 - 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