[Qt-interest] Cross-compiling Qt (linux -> windows)

Jeremy Lainé jeremy.laine at bolloretelecom.eu
Thu Sep 22 11:24:30 CEST 2011


On 09/21/2011 11:52 AM, Victor Leschuk wrote:
> I am trying to cross-compile Qt 4.7.4 from Linux x86_64 for Windows x86_64 using the 
> following toolchain:

I can totally understand wanting to cross-compile Qt-based apps from Linux, it makes 
auto-building a snap, but do you actually need to cross-compile Qt itself? I cross-compile 
my Qt-based Windows apps from Linux (and even generate the final installer under Linux 
using NSIS), but I use official Qt binary releases as I don't have any particular reason 
to compile Qt myself.

What I do is:

1/ install the Qt libraries for Windows using wine
2/ run a python script [1] to generate a clean tarball with the headers, libs and plugins
3/ generate a Debian package which puts all the necessary bits in /usr/i586-mingw32msvc/

If you run a Debian-based distro you can just grab the finished product from [2].

[1] https://svn.jerryweb.org/public/packages/qt4-mingw32/debian/make-orig
[2] http://dev.jerryweb.org/debian/pool/main/libqt4-mingw32-dev_4.7.3-1_all.deb

-- 

Jeremy LAINE
Bolloré telecom | 26, rue de Berri | F-75008 Paris




More information about the Qt-interest-old mailing list