All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Claudio Fontana <claudio.fontana@linaro.org>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu git does not build on 32bits anymore (incl mingw32)
Date: Sat, 15 Feb 2014 23:01:39 +0400	[thread overview]
Message-ID: <52FFB993.5020006@msgid.tls.msk.ru> (raw)
In-Reply-To: <CAFEAcA8L6Y=CbzAK8AvrxzcaHeQwG4dtJO_U39_6tx+TvL+-xw@mail.gmail.com>

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

  reply	other threads:[~2014-02-15 19:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-15 17:34 [Qemu-devel] qemu git does not build on 32bits anymore (incl mingw32) Michael Tokarev
2014-02-15 18:12 ` Peter Maydell
2014-02-15 18:53   ` Peter Maydell
2014-02-15 19:01     ` Michael Tokarev [this message]
2014-02-15 19:05       ` Peter Maydell
2014-02-15 19:08         ` Michael Tokarev
2014-02-15 21:01         ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52FFB993.5020006@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=claudio.fontana@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.