[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Cross Building QEMU for Aarch64

From: Jakob Bohm
Subject: Re: [Qemu-discuss] Cross Building QEMU for Aarch64
Date: Thu, 28 May 2015 14:23:36 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 28/05/2015 14:13, Yehuda Yitschak wrote:
Hi Jacob

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Jakob Bohm
Sent: Wednesday, May 27, 2015 19:31
To: address@hidden
Subject: Re: [Qemu-discuss] Cross Building QEMU for Aarch64

On 27/05/2015 17:21, Yehuda Yitschak wrote:


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
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 
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.

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.


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]