cross-compile for ubuntu userland

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

cross-compile for ubuntu userland

2,205件の閲覧回数
kai_wu
Contributor III

Hi,

We have Ubuntu userland(lsdk20.04) and Linux kernel on our target and they are working properly.

We want to cross-compile some package for this target,

Do you know how to set up the cross-compile environment?

 

we got a toolchain from here lsdk20.04 cross compile setup , but this toolchain is not working as excepted and I think it is for yocto userland (not for ubuntu userland).   For example, the glibc version in the provided yocto toolchain is higher than the glibc in the ubutun root file system(i.e. 2.27).

We tried to cross-compile lighttpd, but it failed to run and it is trying to find glibc 2.28 which doesn't exist on target.

Did I misconfigure the toolchain or didn't follow the correct way to set up the cross-compile environment for ubuntu userland?

Best regards,

Kai Wu

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

2,178件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

After installing flex-builder and setting up compiling environment, you could find toolchain(GCC) is deployed in /usr/bin folder.

$ which aarch64-linux-gnu-gcc
/usr/bin/aarch64-linux-gnu-gcc

Glibc is deployed in /usr/aarch64-linux-gnu/lib/ folder.