Jason Sunk
Jason Sunk

Reputation: 11

zlib still check failed when install qemu

I have been trying to install qemu on my desktop using the wsl(win10, ubuntu 18.04). download the qemu from here

And try to configure like this:

./configure --disable-kvm --disable-werror --target-list="i386-softmmu x86_64-softmmu"

But it's always to throw out the zlib check failed error like this

zlib check failed. Make sure to have the zlib libs and headers installed.

But I have already installed the zlib, and whereis also showed the zlib installed.

If I goto the configure file and disable the zlib test, it's going to throw out the "pthread check failed. Make sure to have the pthread libs and headers installed "

I really have nothing to do with this error. Could you help me out of this error?

Upvotes: 1

Views: 1593

Answers (1)

Peter Maydell
Peter Maydell

Reputation: 11383

You need to install all the dependencies of QEMU (all the libraries it's going to use). If your WSL setup has the sources in its apt.conf then "apt-get build-dep qemu" will install what you need (this command says "install everything that would be needed to build the distro's package of QEMU", which is pretty much the same as for building upstream or some other version from source). Otherwise you can look at https://wiki.qemu.org/Hosts/Linux which suggests what packages to install. For building software, you can treat buliding on WSL like building on a real Ubuntu Linux.

Upvotes: 1

Related Questions