cross-compile for ubuntu userland

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

cross-compile for ubuntu userland

2,198 次查看
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,171 次查看
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.