Unsolved prepare for cross compile by building qt in target ?
-
Hello,
Usually for cross compiling a package means building the package in host using a toolchain of host for target machine.
Yet, there seems to be another alternative:
Build package in target (using the native gcc), and then copy the .so from /lib and the relevant header files from /include files into Host sysroot, so that we can cross compile in host (instead of doing the cross compile of a package in host) .
Should this method always work, even with such big packages like qt ?
Thanks,
ranran -
Why would you do that? The point of cross-compilation is to use the powerful CPU of your host, instead of the weak CPU of the target device - to save time and make development easier.
If, however, it works and you want to use such technique - then sure, go for it.
-
Hi,
I'll give more background. the target is tegra jetson tx1, and host PC is x86.
I want to build qt5 package on target with ubuntu just becuase it is easier to do this build on target.
and then to copy /usr folder into sysroot of intel PC host.
and then cross compile any qt application in PC (after installing and configure qtcreator in PC for cross compile).Should this technique theoretically should work ?
Thanks
-
@ranshalit said in prepare for cross compile by building qt in target ?:
Should this technique theoretically should work ?
I think yes, but I have never tried it so I can't say with certainty.