I have build fsl-image-qt5, but after running fsl-image-qt5 -c populate_sdk, I did not able to create file like "poky-eglibc-x86_64-core-image-base-cortexa9hf-vfp-neon-toolchain-1.6.1.sh
",which I got in fsl-image-gui. But, build is successful after running fsl-image-qt5 -c populate_sdk
Hello,
It should be in /build_<name>/tmp/deploy/sdk
For example in 3.14.52 BSP:
fsl-imx-x11-glibc-x86_64-fsl-image-qt5-cortexa9hf-vfp-neon-toolchain-3.14.52-1.1.0.sh
Luis
I have install toolchain, & in ubuntu terminal, I cross compile using "arm-poky-linux-gnueabi-gcc hello.c -o hello", hello.c is in that directory. but, it is showing
hello.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
what could be the problem...
Hello,
Are sourcing the setup script?
source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
Luis
Yes. I did that & I am able to cross compile simple "C" programs like hello word, factorial..
but, I am getting new error..please Inspect..
Try to create a make file similar to this (correct any path to match yours)
SDKTARGETSYSROOT=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
CC=/opt/poky/1.7/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -ftree-vectorize -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$(SDKTARGETSYSROOT)
TARGET_IP=192.168.0.100
all:
make release
make debug
make remote_install
release:
$(CC) src/main.c -O3 -o bin/makefile_app
debug:
$(CC) src/main.c -O0 -g3 -o bin/makefile_app_debug
remote_install:
scp -r bin/* root@$(TARGET_IP):/home/root/
clean:
rm bin/*
And build with make.
Luis
ok. But, how will i get toolchain option in eclipse, window=>prefrences=>Yocto ADT
Hello,
Installing the ADT plugin. Check the Yocto Project documentation.
https://www.yoctoproject.org/tools-resources/projects/eclipse-ide-plug
Luis