[Development] Crosscompile on Debian stable targeting MS Windows

Fan Yang missdeer at gmail.com
Thu May 3 23:24:41 CEST 2012


Interesting

Sent from my BlackBerry® PlayBook™
www.blackberry.com

------------------------------
*From:* "k blammo" <k.blammo at gmail.com>
*To:* "development at qt-project.org" <development at qt-project.org>
*Sent:* May 4, 2012 2:25 AM
*Subject:* [Development] Crosscompile on Debian stable targeting MS Windows

L.s.

For those of you that want to build Microsoft Windows binaries on
Debian stable: Here are some patches that enable cross-compiling of Qt
5 (both libraries and examples) using mingw that comes bundled with
Debian 6 (current stable).
The resulting binaries can be tested with wine on Debian 6.

Features:
* Support for old version of mingw (4.2.1)
* Out-of-tree build supported (with, for now, one minor exception)

Problems:
* Lots (and I do mean LOTS) of spurious warnings when compiling 1)
* Any support for pkg-config is untested and/or completely accidental

The "minor exception" when using out-of-tree-build concerns the
validators widget example: It does not compile because some generated
code looks for include files in the wrong place. Create symlinks in
the build directory to the "missing" sourcefiles to hack your way
around this (see attachment).

Please note that mingw 4.2.1 needs an additional constant in
"/usr/i586-mingw32msvc/include/winerror.h":
#define CO_E_NOT_SUPPORTED ((HRESULT)0x80004021L)

Tip for testing under wine: Copy the Qt dlls and example programs to the
same directory and create an empty "qt.conf" file there. Run with wine.
Serves two.

Cordially,

kb



1) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34749
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120503/f7c3b772/attachment.html>


More information about the Development mailing list