Reputation: 10403
I'm writing my app on QT and I've produced a working version on my mac. How can make QT also compile an executable for windows?
Upvotes: 5
Views: 10237
Reputation: 34744
A good start would be MinGW for OSX. It should allow you to build Windows applications on OSX.
There are more detailed instructions in another question: How do I configure Qt for cross-compilation from Linux to Windows target?
Upvotes: 0
Reputation: 121849
Qt SOURCE is compatible to Windows, Mac, Linux, ARM and other platforms.
Qt BINARIES are platform-specific. You cannot compile an .exe on the Mac, and hope to run that binary .exe on Windows or Linux.
You'll need to cross-compile, or actually install the Qt SDK and compile on each target platform, for each different kind of .exe.
Upvotes: 3
Reputation: 11896
Here's a tutorial on cross compiling http://web.me.com/dove_family/martin/cross_compile.html
Or you can get a windows machine or virtual machine. Build your app with a compiler on windows and link with the windows QT libraries. For compilers you can use Visual Studio, or MinGW
Upvotes: 3