[Development] Cross compiling Qt for windows using ming32 on Linux

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Sun Feb 9 08:39:36 CET 2014


Thanks Mark. I'll  check it out.

-mandeep


On Sun, Feb 9, 2014 at 5:35 AM, Mark Brand <mabrand at mabrand.nl> wrote:

>
> On 02/07/2014 01:28 PM, Mandeep Sandhu wrote:
>
>> Is it possible to cross-compile a Windows build from within Linux using
>> the mingw32 toolchain.
>>
>> I configure it as follows:
>>
>> ../../qt5/qtbase/configure -v -developer-build -opensource
>> -confirm-license -release -xplatform win32-g++ -device-option
>> CROSS_COMPILE=i586-mingw32msvc- -no-gui
>>
>> It fails with the message "Unable to determine architecture!"
>>
>> Do I need to give the "-platform" switch as well, or is this toolchain
>> not supported at all?
>>
>> I was trying to avoid building Qt from within Windows as it's very slow.
>>
>>
> MXE (http://mxe.cc) might be what you are looking for. It builds Qt 4, Qt
> 5, and dozens of other packages. It supports both MinGW and MinGW-w64
> toolchains. Easy to customize too.
>
> In any case, it might be  helpful to look at its Qt configure options.
>
> Mark
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140209/c96cc9a0/attachment.html>


More information about the Development mailing list