[Interest] Qt 5 Cross compile issue

Thomas Senyk thomas.senyk at pelagicore.com
Mon Jan 14 18:36:40 CET 2013


On Mon, January 14, 2013 07:42:30 Thiago Macieira wrote:
> On quinta-feira, 27 de dezembro de 2012 14.47.00, S. Muthaiah wrote:
> > /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux
> > -g
> > nueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-lin
> > ux- gnueabi/bin/ld: crt1.o: No such file: No such file or directory
> 
> Looks like you did not pass a correct sysroot.

It's even worth ... it's ltib ... ;)

The problem originates from the fact that the ltib rootfs doesn't contain 
basic building blocks (e.g. crt1.o).

The ltib-freescale-linaro toolchain on the other hand does ... and finds them 
automatically based on the other options you give him (e.g. -mthumb, -mfloat-
abi=...)

So you can't use gcc's --sysroot, because then you'll overwrite the 
"automatically-finding-my-personal-toolchain-sysroot"-algorithm.

You still can use configure's -sysroot by additional using '-no-gcc-sysroot'


In the end Thiago is right anyway: wrong sysroot :)
... sysroot should point to your build-filesystem ... if you're using ltib, 
your only option is to use your rootfs.



> 
> Tell us the command-line that compiles a C++ "Hello World" for that
> particular toolchain and sysroot.



More information about the Interest mailing list