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:
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?