Building Windows apps on Ubuntu with QT Creator
-
wrote on 26 May 2013, 20:48 last edited by
I am coding an application that I would like to be cross platform, or at least I would like to be able to easliy build a version for both Linux and Windows (in future also for android).
I am using QT Creator 2.5.2 on a linux (Ubuntu) machine and of course I can easily build a version of my application that works on my machine. But how can I build versions that work on other machines such as windows macines? Is there a way to ask QT Creator to build a version of my app for windows? Or will I have to do it outside of QT Creator?
I tried to find some hints in other topics of the forums but could not find any, thanks in advance for your help.
Mkc.
-
wrote on 26 May 2013, 23:59 last edited by
Generally, the -xplatform argument to ./configure takes care of this. According to < http://www.linuxjournal.com/content/cross-compiling-qt >, its allowed values are mkspecs:
Qt4: http://qt.gitorious.org/qt/qt/trees/4.8/mkspecs
Qt5: http://qt.gitorious.org/qt/qtbase/trees/stable/mkspecs(Note that some more mkspec directories are under ./unsupported and possibly other directories.)
If 32-bit is fine with you (it works on 64-bit, generally), here's another, purportedly simpler solution:
Qt4: http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target
Qt5: http://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows/14170591 -
wrote on 27 May 2013, 19:18 last edited by
Thanks I'll try out your suggestions :)
1/3