cross-compile for ubuntu userland

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cross-compile for ubuntu userland

1,478 Views
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

Labels (2)
0 Kudos
1 Reply

1,451 Views
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.