[Interest] Qt5 mingw builds

Mark Brand mabrand at mabrand.nl
Wed Jan 9 11:41:33 CET 2013


> Вторник, 8 января 2013, 23:26 +02:00 от Nikos Chantziaras 
> <realnc at gmail.com>:
>
>     On 08/01/13 23:22, Konrad Rosenbaum wrote:
>     > On Tuesday 08 January 2013, Diego Iastrubni wrote:
>     > > So... cross compiling Qt5/win32 from Linux is not possible yet?
>     >
>     > In theory it should be possible to create a mkspec for this, but
>     nobody
>     > attempted it yet. I myself gave up cross-compiling with MinGW
>     from Linux
>     > somewhen early in the 4.x run, when my orginal recipe failed.
>     >
>     > You have to test the software on Windows anyways, so why bother with
>     > compiling on a different system? (If it is Bash-Scripts: there
>     is MSys.)
>
>     It's been working fine for me for ages now, and out of the box
>     with this:
>
>     http://mxe.cc
>
>

Дмитрий Козлов wrote:
> One month ago I cross-compiled Qt5 from git sources with mingw 
> (http://mxe.cc). It took some magic to compile it.
> I used this script extracts sources from tar archive, builds and 
> installs. http://pastebin.com/ewDE61GZ
> But I couldn't compile Qt5 with WebKit support... (

No magic is required. The development version (master branch) of MXE 
already has Qt 5.0.0 in modular form. Use "make qtbase" to build qtbase, 
for example. Use "make JOBS=4 qtbase" to buld it faster on a multicore 
system.

It seems to be working pretty well, although you might have to fix paths 
in .prl files due to an upstream problems.

It's true that webkit is excluded for upstream reasons. For one thing, 
it doesn't work with static linking. Also, as I understand there is also 
an upstream problem building webkit on MinGW.

By the way, cross building no longer requires a separate mkspec. This is 
new in Qt 5.

Mark




More information about the Interest mailing list