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?