[Qt-interest] Cross-compiling Qt (linux -> windows)
Mark Brand
mabrand at mabrand.nl
Wed Sep 21 14:55:16 CEST 2011
On 09/21/2011 02:09 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 )
>
> Most guys who did it recommend to build Qt libs on a windows host and
> than put them to Linux host for linkage.
> I have a win7 build box on a virtualbox, however it is not an option,
> it is necessary to get automated build procedure hosted on Linux
> environment. Currently I am trying similar way that described here
> http://lists.qt.nokia.com/pipermail/qt-interest/2011-March/031912.html
> - the guy was compiling windows binaries from mac os. I studied and
> adopted his configuration scripts to my cross-compiler and now giving
> it a try...
>
Hi Victor,
You might want to have a look at how building Qt works in
mingw-cross-env, even though this project cross builds only 32-bit
static libraries.
It uses the makespec 'unsupported/win32-g++-cross' in the Qt source tree.
The configure recipe is here:
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/file/tip/src/qt.mk
Some mostly cherry-picked patches are here:
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/file/tip/src/qt-1-cherrypicks.patch
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110921/506cdde9/attachment.html
More information about the Qt-interest-old
mailing list