So as always it’s the glibc2 wars. Â And as part of the fun you need pkg-config. Â And since it has to run, you’ll end up with the native version.
Luckily I found this site,Â mega-nerd.com
So you can create aÂ i586-mingw32msvc-pkg-config file. Â Just in case it get's lost here it is:
# This file has no copyright assigned and is placed in the Public Domain.
# No warranty is given.
# When using the mingw32msvc cross compiler tools, the native Linux
# pkg-config executable works fine as long as the default PKG_CONFIG_LIBDIR
# is overridden.
# Also want to override the standard user defined PKG_CONFIG_PATH with
# a mingw32msvc specific one.
# Now just execute pkg-config with the given command line args.
Fun as always, right?
And as always Qemu can be configured with:
When cross compiling.
I can’t remember what month and year, but there’s an issue of Linux Journal which describes the problems of cross-compiling, that is making a Linux program work via building it on Cygwin, say, and then confirming it works on a Fedora platform, say.
You might search through their lists of articles of the years.
i got it to work. The configure script didnt find some stuff, and screwed up a bunch more. I hate make systems that hide from the user what they are doing, because we are all dumb end users.
But after seeing what nonsense the compiler and linker were being fed, i have an exe that booted MS-DOS… it needs a bit more help, i bet the adlib is still disabled.
http://qemu.weilnetz.de/ is cross-compiled for Windows, and I’ve been using 2.4.0 (and formerly 2.2.0) without problems. I’m not energetic enough to try rebuilding it myself, though, but presumably he has some useful patches for your use.
Lucky you, I’ve had nothing but issues with those builds… I’ve suspected because they dont follow release milestones, but a given time period.
QEMU is a nightmare to build for windows.