Cao Van Dong <1658...@bugs.launchpad.net> writes: > Hello everyone!! > > I am having a issue when build qemu using gcc aarch64-linux-gnu-* on > ubuntu 16.04: > > dong02@dong:~/qemu$ ./configure > \ >> --prefix=/usr --cross-prefix=/usr/bin/aarch64-linux-gnu- \ >> --target-list=aarch64-softmmu \ >> --enable-attr --enable-fdt --enable-kvm \ >> --enable-sdl --enable-system --enable-tools \ >> --audio-drv-list= \ >> --disable-bluez --disable-brlapi --disable-bsd-user \ >> --disable-cap-ng --disable-curl --disable-curses \ >> --disable-docs --disable-libiscsi --disable-linux-aio \ >> --disable-rbd --disable-seccomp --disable-slirp \ >> --disable-sparse --disable-spice --disable-strip \ >> --disable-usb-redir --disable-vde --disable-virtfs \ >> --disable-vnc --disable-werror --disable-xen > > ERROR: zlib check failed > Make sure to have the zlib libs and headers installed. > > I installed zlib library: sudo apt-get install zlib1g-dev. However, result no > change > Please help me!!
You will have installed the x86 version of the zlib1g-dev libraries. Unfortunately headers are not uniform across all architectures. If you want to ensure you have all the appropriate headers for cross compiling QEMU do: apt-get build-dep -a arm64 qemu But you may well run into problems if the distribution isn't fully multi-arch clean. This is one of the reasons we use docker to isolate our various cross build environments: make docker-test-build@debian-arm64-cross J=9 TARGET_LIST=aarch64-softmmu -- Alex Bennée