[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix compilation on MinGW Windows cross-compiler
From: |
Richard W.M. Jones |
Subject: |
[Qemu-devel] [PATCH] Fix compilation on MinGW Windows cross-compiler |
Date: |
Fri, 24 Oct 2008 14:35:36 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Inspired by some comments by Anthony Liguori yesterday, I got qemu to
compile using the Fedora MinGW cross-compiler[1].
There are some problems introduced by what I think is new code (the
migration code), so I just hacked those bits out. Not a good fix, but
the patch is attached anyhow.
After installing the MinGW packages in Fedora[2], the command to
compile qemu is:
PATH=/usr/i686-pc-mingw32/sys-root/mingw/bin:$PATH \
PKG_CONFIG_PATH=/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig \
./configure \
--cross-prefix=i686-pc-mingw32- \
--host-cc=i686-pc-mingw32-gcc \
--cpu=i386 \
--disable-gcc-check \
--audio-drv-list=
make
This produces Windows binaries (eg. qemu-system-x86_64.exe) which work
to some extent under Wine. In fact I was able to boot a 64 bit Fedora
9 guest up to the point where it runs initrd, at which point qemu
crashes somewhere.
I didn't test the binaries on real Windows.
Rich.
[1] http://fedoraproject.org/wiki/MinGW
[2] http://www.annexia.org/tmp/mingw/fedora-9/
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
qemu-mingw32-get-it-working.patch
Description: Text document
- [Qemu-devel] [PATCH] Fix compilation on MinGW Windows cross-compiler,
Richard W.M. Jones <=