[Development] Cross compiling Qt for windows using ming32 on Linux
Mark Brand
mabrand at mabrand.nl
Sun Feb 9 01:05:17 CET 2014
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
More information about the Development
mailing list