[Development] Crosscompile on Debian stable targeting MS Windows

sarah.j.smith at nokia.com sarah.j.smith at nokia.com
Fri May 4 04:10:10 CEST 2012


Donald you obviously need to implement a new backend to git that lives along side ssh, so that all development on this can be done against sources that live on an imap server….

On 04/05/2012, at 7:41 AM, ext Donald Carr wrote:

Hey kb,

This is pretty cool, are you making any attempt at upstreaming these
or will these continue to exist as email attachments?

Yours sincerely,
Donald

On Thu, May 3, 2012 at 11:25 AM, k blammo <k.blammo at gmail.com<mailto:k.blammo at gmail.com>> wrote:
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

_______________________________________________
Development mailing list
Development at qt-project.org<mailto:Development at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/development




--
-------------------------------
 °v°  Donald Carr
/(_)\ Vaguely Professional Penguin lover
 ^ ^

Cave canem, te necet lingendo
Chasing my own tail; hate to see me leave, love to watch me go
_______________________________________________
Development mailing list
Development at qt-project.org<mailto:Development at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/development

Sarah Smith
Team Lead Qt3D
Email: sarah.j.smith at nokia.com<mailto:sarah.j.smith at nokia.com>
Ph: +61448283476

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120504/d7b3c948/attachment.html>


More information about the Development mailing list