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 _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development