hi everyone ,
I got sdk out of yocto using below commond :
bitbake fsl-image-qt5 -c populate_sdk
and I installed successfully。
but i must specify sysroot for compile app . it looks like :
arm-poky-linux-gnueabi-gcc -o test test.c -sysroot=/opt/imx6ul_yocto_sdk_20170220/sysroots/cortexa7hf-neon-poky-linux-gnueabi
i am trying to make it use no -sysroot . so i specify C_INCLUDE_PATH but it dosn't work.
can anyone help me?
Solved! Go to Solution.
Thank you for writing.
How did you write the C_INCLUDE_PATH?
For example, this is how I wrote the C_INCLUDE_PATH.
C_INCLUDE_PATH=/opt/fsl-imx-wayland/4.1.15-1.2.0/sysroots/cortexa7hf-vfp-neon-poky-linux-gnueabi/usr/include/ (This is for my computer).
And, this is how I am compiling the app.
$CC -o hello hello.c (Again, this is for my computer).
I hope this information can solve your question.