[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-discuss
Subject:    Re: [Qemu-discuss] Cross Building QEMU for Aarch64
From:       Jakob Bohm <jb-gnumlists () wisemo ! com>
Date:       2015-05-28 12:23:36
Message-ID: 556708C8.7020809 () wisemo ! com
[Download RAW message or body]

On 28/05/2015 14:13, Yehuda Yitschak wrote:
> Hi Jacob
> 
> > -----Original Message-----
> > From: qemu-discuss-bounces+yehuday=marvell.com@nongnu.org
> > [mailto:qemu-discuss-bounces+yehuday=marvell.com@nongnu.org] On
> > Behalf Of Jakob Bohm
> > Sent: Wednesday, May 27, 2015 19:31
> > To: qemu-discuss@nongnu.org
> > Subject: Re: [Qemu-discuss] Cross Building QEMU for Aarch64
> > 
> > On 27/05/2015 17:21, Yehuda Yitschak wrote:
> > > 
> > > Hello
> > > 
> > > 
> > > i am trying to cross build qemu v2.3.0 to Aarch64 on a i386 host
> > > 
> > > i am using "gcc-linaro-aarch64-linux-gnu-4.9-2014.05_linux" toolchain
> > > 
> > > 
> > > the qemu configure scripts complains:
> > > 
> > > ERROR: zlib check failed
> > > Make sure to have the zlib libs and headers installed.
> > > 
> > > i believe this is a problems with the toolchain.
> > > Does anyone know a way around this ?
> > > 
> > Make sure there is an aarch64 compiled zlib *and its
> > headers* installed in the cross toolchain's aarch64 include and lib
> > directories.
> It's missing. I tried downloading the aarch64 compiler from Ubuntu 13.04  but that \
> toolchain is also missing zlib
> > 
> > Look at the failing lines in the configure scripts and try to figure out where it
> > looks for zlib.h and ( zlib.so.* or zlib.a.*), or if it simply does a test
> > compile/link of a dummy program that referenceszlib.
> 
> It does the latter. It passes -lz as linker flags and it fails.
> I ran with --disable-zlib-test and managed to get a bit further but then I failed \
> on "ERROR: glib-2.12 gthread-2.0  is required to compile QEMU" 
> I found this very old bug where  it suggested to use open-embedded but I'm looking \
> for something simpler. https://bugs.launchpad.net/linaro-oe/+bug/1097561
> 
> 

Download the source tarballs for zlib, glib, gthread
etc. and cross compile those before cross compiling qemu.

If those libraries are already on your target system (or
its repository), just copy them from there instead.


Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic