Cross-Compiling Qt Applications from Windows to Mac OS
-
Hello everyone,
Can anyone tell me how to build .app extension files through Qt Creator-SDK and MingW? GCC Compiler is also installed.I have done is
qmake -spec macx-xcode project_name.pro
It created supporting files to create .app extension (when opened in Notepad).
Thanks for the help.
-
You will need a special cross compiler for that, a normal mingw will not work: Apple uses a binary format that differs from the one used on windows.
The macx-xcode spec expects the mac compiler set up as on a mac, too, so that is unlikely to work with a cross-compiler tool chain on windows.
I saw a documentation on how to "cross-compile from Linux to Mac":http://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt before, maybe that can be used as some form of inspiration for a similar setup on Windows... Note that the process seems to depend heavily on which version of MacOS you want to target.