Under Lubuntu 14.04, here's the cmdline:
./configure --target-list=i386-softmmu --cross-prefix=i686-w64-mingw32-
--static --disable-sdl --enable-gtk --disable-kvm --disable-curl
--disable-vnc --disable-fdt --disable-rdma
ERROR: zlib check failed
Make sure to have the zlib libs and headers installed.
I have googled, and tried the follwing:
sudo apt-get install zlib1g-dev
sudo apt-get --no-install-recommends -y build-dep qemu
sudo apt-get install build-essential
sudo apt-get install mingw-w64
All gave
blablabla
0 to upgrade, 0 to newly install, 0 to remove and 123 not to upgrade.
So they were already installed.
I also created the i686-w64-mingw32-pkg-config script.
Am not a Linux person, only want to cross compile because somebody
thinks it is a good idea that the official windows binaries are stripped
of error messages and respond to invalid command line options by doing
nothing at all.