I need help setting up my eclipse environment to build code against the SDK I created. Here is what I have done.
- Created a Yocto build, placed this image onto a device and ensured it booted
- Run the bitbake populate_sdk command
- Copied the SDK.sh file and run it in /opt on my host machine
- Downloaded Eclipse 2021-12
- Created a new hello world application using the cross gcc compiler
- Attached a text file to this case showing the tree output in my opt folder
- Followed this tutorial to point eclipse to the SDK
Now here is where I have problems.
When I build the program (attached below) I get the error that
gnu/stubs-soft.h no such file or directory
I understand that adding -mfloat-abi=hard is supposed to solve this issue. Placing this after my GCC command in the eclipse compiler settings gives me a new error that my device does not have an FPU. I am then told my build is incomplete.
Other posts said to run the source command on the environment setup file that is included. Running this command followed by echo $CC I see the output.
arm-poky-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi
This looks like what I need in eclipse. How can I configure eclipse to properly build my small program?
After running the source environment setup command I can then run
$CC test.c
This successfully compiles my code. However eclipse can not figure this out.