ransh
ransh

Reputation: 1702

Build library in target for cross compile in Host

Usually a cross compiling a package(library) 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 /usr/lib and the relevant header files from /usr/include files into Host sysroot, so that we can cross compile in host (instead of doing the cross compile of a package in host and copy to target) .

I consider using this method with to large packages like qt5 and gstreamer.

Should this method always work, even with such big packages like qt ?

Upvotes: 0

Views: 436

Answers (1)

jwernerny
jwernerny

Reputation: 7048

How fast is your target? How much RAM and disk space do you have?

If your target is a full embedded PC with a quad core i7, 16G RAM and 500G SSD, then you should have no problem (I've worked with these "embedded" PCs for image processing).

If it is a low end ARM Processor with 2 cores, 4G RAM, and 32G SD Card, you are not going to be happy trying to build Qt on it, if it is even possible.

Upvotes: 1

Related Questions