[Qt-interest] Cross-compiling Qt (linux -> windows)
David GARCÍA GARZÓN
david.garcia at upf.edu
Wed Sep 21 21:15:57 CEST 2011
-----Mensaje Original-----
De Nikos Chantziaras <realnc at arcor.de>
Enviado Mié 21/09/2011 16:06
Para qt-interest at qt.nokia.com
Asunto Re: [Qt-interest] Cross-compiling Qt (linux -> windows)
On 09/21/2011 12:52 PM, 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:
>
> $ x86_64-w64-mingw32-g++ --version
> x86_64-w64-mingw32-g++ (GCC) 4.5.4 20110822 (prerelease)
>
> Found some articles/mails regarding this point int the web:
>
> http://lists.trolltech.com/qt-interest/200...ead00351-0.html
> <http://lists.trolltech.com/qt-interest/2006-03/thread00351-0.html>
> http://silmor.de/29 (also rather unclear to me part http://silmor.de/38 )
Nah, what you need is this:
http://www.nongnu.org/mingw-cross-env
Everything else is way to complicated.
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
cross-mingw-env is so cool. The problem with cross-mingw-env is that it links all
libraries in static to 'solve' the dll hell. But I needed dll's to use plugins
so, i did a python script inspired in cross-mingw-env that compiles all dynamically.
Checkout this svn directory:
http://clam-project.org/clam/trunk/CLAM/scripts/mingw-cross/
And run:
$ ./setup_mingw.py
It is not specific for having qt, so it will compile some more libraries you don't
need. You can comment out them from the library list. Anyway, as long as you
don't have to doit by hand it is quite fast.
OT: The missing component to have full support for our project is python. If
someone can help that would be very helpful.
More information about the Qt-interest-old
mailing list