Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TKhan10
Beginner
1,025 Views

Setting Eclipse IDE for developing on Intel Aero

I followed the wiki Quickstart Guide to build the image and Hello World example.

However, this example run on console so it's hard to run/debug.

Is there some guide to developing using Eclipse IDE.

Tags (1)
4 Replies
idata
Community Manager
69 Views

Hello tranxuankhanh,

 

 

Thanks for reaching out!

 

 

As you mentioned, there is no official way to develop for Aero using Eclipse. However, as you may know Aero's OS is based on Yocto, specifically on Yocto 2.1. If you check Yocto's official documentation, specifically Yocto's Mega Manual ( http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html# setting-up-the-eclipse-ide), you'll eventually get to chapter 8, in this chapter it's explained the standard Yocto SDK and how to use it. This includes how to install it and how to develop applications using Eclipse.

 

 

So, if you'd like to use Eclipse to develop applications you might be interested in checking this option. Please be aware that I have not tested this, but this is the tool that enables other development boards to be programmed through Eclipse. Please also note that since this is not official it is out of the support scope.

 

 

In Yocto's documentation they also link a video explaining how to use Yocto's Eclipse plugin, if you are interested in this idea, then you might like to check it out:

 

 

https://www.youtube.com/watch?v=3ZlOu-gLsh0

 

 

I hope this information helps you,

 

Pedro M.
idata
Community Manager
69 Views

Hello tranxuankhanh,

 

 

Do you have any updates about this?

 

 

Pedro M.
TKhan10
Beginner
69 Views

I followed your link and configured the Eclipse IDE successfully.

Below are summary step to do this thing

1) Build image

cd poky

export TEMPLATECONF=meta-intel-aero/conf/

source oe-init-build-env

bitbake intel-aero-image

2) Build toolchain

bitbake meta-toolchain

3) Install toolchain

cd tmp/deploy/sdk/

./poky-glibc-x86_64-meta-toolchain-core2-64-toolchain-2.1.1.sh

3) Install Yocto Plug-in to Eclipse

"Help" --> "Install New Software..."

Add "Work with" link http://downloads.yoctoproject.org/releases/eclipse-plugin/1.8/luna

Install all Yocto plugins

4) Configure Yocto plugin

"Windows" --> "Preferences" --> "Yocto Project ADT" --> "Cross Compiler Options:"

Select "Standalone pre-built toolchain"

Browse "Toolchain Root Location" to installed tool chain in step 2, default is "/opt/poky/2.1.1"

Browse "Sysroot location" to "poky/build/tmp/sysroots/intel-aero"

Select "Target Architecture" to "core2-64-poky-linux"

5) Create Hello World project

"File" --> "New" --> "C++ Project"

Select project type "Yocto Project ADT Autotools"

6) Compile librealsense example

Copy all files in librealsense example to Hello World project

cp -r poky/build/tmp/work/core2-64-poky-linux/librealsense/1.9.4-r0/git/examples/* eclipse/workspace/hello/src/

Copy content of "cpp-capture.cpp" to "helloWorld.cpp"

Configure project before build

"Project" --> "Properties" --> "Autotools" --> "Configure Settings"

Add header search path

"Configure" --> "Directories" --> "C Header file ..." to "${Sysroot}/usr/include"

Add C++11 support

"Configure" --> "Advances" --> "C Header file ..." to "${Sysroot}/usr/include"

CXXFLAGS="${CXXFLAGS} -std=c++11" CPPFLAGS="${CPPFLAGS} -std=c++11"

Add library by insert below lines to "Makefile.am"

AM_LDFLAGS += -lrealsense -lglfw -lGL

idata
Community Manager
69 Views

Hi tranxuankhanh,

 

 

Thanks a lot for sharing this data with the community. I'm sure it will be of much help for other users in the forum.

 

 

If you ever have any other questions, please don't hesitate to come back to the community.

 

 

Pedro M.
Reply