From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEkUl-000136-8j for qemu-devel@nongnu.org; Sat, 15 Feb 2014 14:01:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEkUg-00062p-R7 for qemu-devel@nongnu.org; Sat, 15 Feb 2014 14:01:47 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:52821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEkUg-00062c-II for qemu-devel@nongnu.org; Sat, 15 Feb 2014 14:01:42 -0500 Message-ID: <52FFB993.5020006@msgid.tls.msk.ru> Date: Sat, 15 Feb 2014 23:01:39 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <52FFA51B.9070108@msgid.tls.msk.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu git does not build on 32bits anymore (incl mingw32) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Claudio Fontana , qemu-devel 15.02.2014 22:53, Peter Maydell wrote: > Incidentally if you have a simple recipe for setting up a windows > mingw build environment on Ubuntu (preferably not bleeding-edge > Ubuntu) then I'm happy to add "compile-test for win32" to my > pullreq application checklist. Hm. I've never did that before, but it appeared quite easy to do. apt-get install mingw32 grabbed a few -dev binaries from http://www.gtk.org/download/win32.php, namely: glib zlib gettext-runtime libpng pixman and extracted them into a common directory (say, $mingwhome). Next, created /usr/local/bin/i586-mingw32msvc-pkg-config with the following: --- cut --- #!/bin/sh prefix=$mingwhome PKG_CONFIG_LIBDIR=$prefix/lib/pkgconfig export PKG_CONFIG_LIBDIR exec pkg-config --define-variable=prefix=$prefix $@ --- cut --- Now I can build qemu like this: ./configure --cross-prefix=i586-mingw32msvc- \ --extra-cflags=-I$mingwhome/include \ --extra-ldflags=-I$mingwhome/lib That's basically all. This works on debian wheezy. Similar setup should work for w64 too, except in this case mingw-w64 is needed, and libs from http://www.gtk.org/download/win64.php . Initially I followed http://wiki.qemu.org/Hosts/W32 . BTW, current debian wheezy catches these constants in 32bits too. I mean, when the host is 32bits. Thanks, /mjt