Cross compilation
Xen
list at xenhideout.nl
Tue Jul 11 10:04:18 UTC 2017
John Paul Adrian Glaubitz schreef op 11-07-2017 11:37:
> On Tue, Jul 11, 2017 at 11:32:20AM +0200, Xen wrote:
>> You will need all X libraries as well though. I personally couldn't
>> manage
>> without using OpenEmbedded.
>
> It's fairly easy to do that on Debian thanks to Multi-Arch. You can
> install all build dependencies for the target architecture simply from
> the corresponding repository.
>
> You basically just need to:
>
> # dpkg --add-architecture armhf
> # apt update
> # apt build-dep openjdk-8:armhf
>
> Just make sure you have at least Debian Jessie for openjdk-8.
Aye, but it just seems that when you have such a full-fledged system
available already, the need for cross-compilation also grows much less,
since it has already been done, unless you are developing I guess. I
mean if you have not changed the JDK there is usually not much reason to
cross-compile to a system that already has it ;-).
Anyway, to each their own indeed. The biggest pain for OpenEmbedded was
that you cannot really select your target compiler and target glibc very
well, I am sure you can, but I couldn't. Also, the ipkgs it created were
not actually usable by my target system, but anyway.
It's a sort of out-of-the-box system that will compile EVERYTHING the
JDK might need first, which takes a long time, and then finally it will
build the JDK. If you have a target system available with all the
required libraries, there is probably indeed not much use in using
OpenEmbedded.
Regards.
(Also I was trying JDK 7, version 8 may have a much better build
system).
More information about the build-dev
mailing list