From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtNBF-0001Iy-Uy for qemu-devel@nongnu.org; Fri, 24 Oct 2008 09:58:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtNBD-0001IP-HP for qemu-devel@nongnu.org; Fri, 24 Oct 2008 09:58:20 -0400 Received: from [199.232.76.173] (port=54868 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtNBD-0001IM-B4 for qemu-devel@nongnu.org; Fri, 24 Oct 2008 09:58:19 -0400 Received: from yx-out-1718.google.com ([74.125.44.156]:64109) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtNBD-0003SI-88 for qemu-devel@nongnu.org; Fri, 24 Oct 2008 09:58:19 -0400 Received: by yx-out-1718.google.com with SMTP id 3so278578yxi.82 for ; Fri, 24 Oct 2008 06:58:17 -0700 (PDT) Message-ID: <4901D475.9050308@codemonkey.ws> Date: Fri, 24 Oct 2008 08:58:13 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Fix compilation on MinGW Windows cross-compiler References: <20081024133536.GA12450@amd.home.annexia.org> In-Reply-To: <20081024133536.GA12450@amd.home.annexia.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Richard W.M. Jones wrote: > 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. > I've got a better fix locally that I'll commit. It doesn't get migration working on Windows but it at least compiles. Regards, Anthony Liguori > Rich. > > [1] http://fedoraproject.org/wiki/MinGW > [2] http://www.annexia.org/tmp/mingw/fedora-9/ > >