Cross compilation

Andrew Haley aph at redhat.com
Tue Jul 11 09:53:53 UTC 2017


On 11/07/17 10:37, John Paul Adrian Glaubitz wrote:
> 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.

I've always assumed that you must have a target system to test on,
so all you have to do is install everything on the target and then
copy an image of its root filesystem.  I've even taken a drive
out of a target system and plugged it into my host.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the build-dev mailing list