[Interest] Qt5 Cross Compiling on Linux For Windows

Jonathan Greig redteam316 at gmail.com
Fri Mar 7 00:40:33 CET 2014


I've used MXE several times in the past even before it was called MXE. I
must have really bad luck, because any time I have ever used the master
ends up in disaster. Mark, Since I know your involved with MXE more than
most, is there an estimate on when the shared lib support will make it into
the stable branch or is it too early to tell?

I noticed it was subsumed into the win32-g++ mkspec but the note suggests
you need to build Qt5 from source, which I would like to avoid if possible
because that lengthens the build process considerably. I'm on Kubuntu 13.10
and using the .deb packages(which I'm assuming are bootstrapped from
Debian) previously tried using -spec win32-g++ without much luck. If I can
get it working reliably on my machine, there's little reason why it
wouldn't work on Travis-CI. Are the Debian packages not configured for
cross-compiling?

Jonathan


On Thu, Mar 6, 2014 at 4:14 PM, Mark Brand <mabrand at mabrand.nl> wrote:

>
> On 03/06/2014 10:40 PM, Jonathan Greig wrote:
>
>> Is there a recommended or proper way for cross-compiling on Linux for
>> Windows in Qt5 that doesn't involve building Qt5 from source? The
>> unsupported/win32-g++-cross mkspec is now removed in Qt5 and I'd like to
>> setup a cross compiler under Travis-CI.
>>
>>
> That mkspec was removed because it was subsumed by the main win32-g++
> mkspec.
>
> As far as I know, there is no "official" way of cross compiling. But MXE (
> http://mxe.cc/) provides a complete cross-building environment.
> Historically it has been focused on building static libraries. Recently
> support for shared libraries was added on the master branch. A lot of the
> cross building features found in the Qt build system were were proposed on
> behalf of MXE.
>
> Mark
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140306/062a6287/attachment.html>


More information about the Interest mailing list