# Eclipse configuration for Digi Embedded Yocto

**URL:** https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701
**Category:** Linux
**Tags:** yocto, eclipse, neon
**Created:** [October 7, 2014, 8:56am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701 "2014-10-07T08:56:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![truszcz](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@truszcz](https://forums.digi.com/u/truszcz)
#### Post date: [October 7, 2014, 8:56am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/1 "2014-10-07T08:56:44Z")

</div>

I am playing around with ConnectCore 6 SBC and Digi Embedded Yocto, but I have a problem with Eclipse configuration. I followed Digi Embedded Yocto 1.6 First Steps Guide and created toolchain, sysroot and target image. The board is booting, it works fine. I am able to communicate with it via serial port terminal. I was able to build and run an example application on the target using TCF from Eclipse (just like in the tutorial). Here comes the problem:  
I wanted to create a simple project with NEON intrinsics based on Hello World Autotools project. I checked the configuration and included arm\_neon.h header. Even though the effective call to gcc is:

arm-dey-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=DKTARGETSYSROOT (…)

I cannot compile anything that is included in arm\_neon header. For example I get the following error:

Type ‘uint8x8\_t’ could not be resolved

After a short investigation I noticed that the include path set in Eclipse project (Properties-\>C/C++ General-\>Paths and Symbols) is not taken into account. I can find “arm\_neon.h” in (…)workspace/ccimx6sbc/tmp/sysroots/ccimx6sbc/usr/include which I set in project “Paths and Symbols”, but the compiler includes this file from:  
(…)workspace/ccimx6sbc/tmp/sysroots/i686-linux/usr/lib/cortexa9hf-vfp-neon-dey-linux-gnueabi/gcc/arm-dey-linux-gnueabi/4.8.2/include/arm\_neon.h

Apparently there is a discrepancy between Eclipse configuration and Yocto settings. It doesn’t apply only to neon instructions that were given here just as an example.  
How should I configure Paths and Symbols of the Eclipse project in order to use the sysroot specific libraries and headers? Shouldn’t it be done automatically after configuring Yocto Eclipse Plugin? After following the First Steps Guide, the Eclipse was pointing to my PC specific includes (regardless Yocto Plugin settings), so I manually edited it to point to the created sysroot. I would like to be able to see the content of the included files from the Eclipse editor (e.g. by right-clicking on a specific include and selecting “Open declaration”). What should I do to use NEON intrinsics?

There also two more problems. In order to run any bitbake command I need to source the mkproject.sh script after every startup of the PC. Moreover I get following “Infos” in “Problems” tab in Eclipse:  
Missing PROG arm-dey-linux-gnueabi-dlltool  
Missing PROG arm-dey-linux-gnueabi-mt  
Missing PROG dlltool  
Is it normal or there is something wrong with my system?

---

<div class="post-metadata">

### Author: ![david.lockyer](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@david.lockyer](https://forums.digi.com/u/david.lockyer)
#### Post date: [October 13, 2014, 3:23am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/2 "2014-10-13T03:23:49Z")

</div>

Hi,

As I understand it, while in your project directory you:

Configure image (local.conf) with extra debug features  
EXTRA\_IMAGE\_FEATURES = ”tools-debug eclipse-debug debug-tweaks“  
i.e.

# nano local.conf

ctrl+w; EXTRA\_IMAGE\_FEATURES; add 'tools-debug eclipse-debug '; ctrl-x;Y; Enter

# bitbake dey-image-graphical

# bitbake meta-ide-support

Create the SDK for your platform  
(in this case dey-image-graphical)

# bitbake dey-image-graphical –c populate\_sdk

Install SDK including toolchain and sysroot

# cd ~/workspace/ccimx6sbc/tmp/deploy/sdk

# ./dey-eglibc-i686-dey-image-graphical-cortexa9hf-vfp-neon-toolchain-1.6.sh

(In this case we’re creating the SDK for ‘graphical’, for the ccimx6sbc, so keep things simple use that for the sub folder structure)  
Enter target directory for SDK (default: /opt/poky/1.6): /opt/dey-1.6/graphical/ccimx6sbc

You are about to install the SDK to “/opt/dey-1.6/graphical/ccimx6sbc”. Proceed[Y/n]? Y

[sudo] password for USER: USER\_PASSWORD

Extracting SDK…done  
Setting it up…done  
SDK has been successfully set up and is ready to be used.

You then configure in Eclipse:  
Proerties-\>Yocto Project Settings-\>Cross Compiler Options:

\*Standalone pre-built toolchain

Toolchain Root Location:  
/opt/dey-1.6/graphical/ccimx6sbc

Sysroot Location:  
/opt/dey-1.6/graphical/ccimx6sbc/sysroots/cortexa9hf-vfp-neon-dey-linux-gnueabi

Target Architecture:  
cortexa9hf-vfp-neon-dey-linux-gnueabi

Eclipse should now use the freshly installed SDK created from your Yocto project.

I am also new to Digi Embedded Yocto though, so largely just passing on the info I got from training.

I also have the Problems:  
Missing PROG arm-dey-linux-gnueabi-dlltool  
Missing PROG arm-dey-linux-gnueabi-mt  
Missing PROG dlltool

Regards,  
David

---

<div class="post-metadata">

### Author: ![truszcz](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@truszcz](https://forums.digi.com/u/truszcz)
#### Post date: [October 14, 2014, 4:46am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/3 "2014-10-14T04:46:46Z")

</div>

Hi David,

Thanks for your reply. I followed your instructions but I still get the same problems. Are you able to compile and run this example?  
[http://www.armadeus.com/wiki/index.php?title=NEON\_HelloWorld](http://www.armadeus.com/wiki/index.php?title=NEON_HelloWorld)

I’ve tried several tricks with includes, but I still get this message:  
Type ‘uint8\_t’ could not be resolved

Best wishes,  
Tomasz

---

<div class="post-metadata">

### Author: ![david.lockyer](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@david.lockyer](https://forums.digi.com/u/david.lockyer)
#### Post date: [October 14, 2014, 6:40am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/4 "2014-10-14T06:40:33Z")

</div>

Hi Tomasz,

Create your project, edit the helloWorld.c, save.

Then close the project and re-open it… ([http://www.eclipse.org/forums/index.php/t/285005/](http://www.eclipse.org/forums/index.php/t/285005/)).

Build.

You will get errors, but it will debug & run i.e.:  
root@ccimx6sbc:/#  
echo $PWD’\>’  
/\>  
root@ccimx6sbc:/# gdbserver :2345 /tmpHelloWorld;exit  
Process /tmpHelloWorld created; pid = 858  
Listening on port 2345  
Remote debugging from host 192.168.xxx.xxx  
data = 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16  
data (new) = 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19

So not ideal, but I guess a configuration issue of eclipse?

Regards,  
Dave

---

<div class="post-metadata">

### Author: ![truszcz](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@truszcz](https://forums.digi.com/u/truszcz)
#### Post date: [October 14, 2014, 7:41am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/5 "2014-10-14T07:41:19Z")

</div>

Thanks, that helped me.

To sum up: even though eclipse was giving errors, the project was compiling correctly. It’s great that it works, and the related problems are just minor details.

---

<div class="post-metadata">

### Author: ![Oliver\_K](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Oliver\_K](https://forums.digi.com/u/Oliver_K)
#### Post date: [August 29, 2016, 8:06am UTC](https://forums.digi.com/t/eclipse-configuration-for-digi-embedded-yocto/13701/6 "2016-08-29T08:06:14Z")

</div>

Hi Thomasz, did you find a solution for this issue? I’ve still the same problem.

Thanks,  
Oliver.
