using sdk out of yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

using sdk out of yocto

跳至解决方案
2,251 次查看
玉栋郭
Contributor III

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?

标签 (4)
标记 (1)
1 解答
2,004 次查看
玉栋郭
Contributor III

hi~    thank you for your reply , i got the answer,

https://community.nxp.com/thread/436885 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,004 次查看
diegoadrian
NXP Employee
NXP Employee

Hello,

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.

Best Regards,

Diego.

2,005 次查看
玉栋郭
Contributor III

hi~    thank you for your reply , i got the answer,

https://community.nxp.com/thread/436885 

0 项奖励
回复