imx6 cross compile and stdlib.h

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 cross compile and stdlib.h

988件の閲覧回数
kayiyeh
Contributor II

Hi there,

I am trying to cross compile "memtester" on IMX6SLL platform. First I download Yocto and follow the steps to bitbake meta-toolchain. It generate a script in the tmp/deploy dirsctory. I ran the script then it install the gcc for arm  and it direct me to run environment setup script. However, I got some issues from here:

1. there are two environment setup files "/opt/fsl-imx-fb/4.9.88-2.0.0/environment-setup-aarch64-poky-linux" and "/opt/fsl-imx-fb/4.9.88-2.0.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi" both seems doing similar thing. Which one should I use? I just need a simple application such as memtester memtester version 4 . It doesn't need and GUI or FPU or .. support.

2. I tried to use /opt/fsl-imx-fb/4.9.88-2.0.0/environment-setup-aarch64-poky-linux to setup environment and make memtester, The aarch64-poky-linux-gcc reports it can't find stdlib.h. As I know, stdlib.h is a standard C include file, but I can't figure out what happened because there are many stdlib files from my build directory but I don't know which one is correct.

Please help and thank in advance.

Ka-Yi Yeh

ラベル(2)
0 件の賞賛
2 返答(返信)

727件の閲覧回数
kayiyeh
Contributor II

I add and search path "-I/opt/fsl-imx-fb/4.9.88-2.0.0/sysroots/aarch64-poky-linux/usr/include/" and it works.

0 件の賞賛

727件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Correct!!!

0 件の賞賛