Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make QT produce executable for Windows on Mac?

Tags:

c++

qt

qt4

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?

like image 675
Roman Avatar asked Dec 08 '11 01:12

Roman


People also ask

How do I run a program in Qt?

Click (Run) to build and run the application. To see the compilation progress, press Alt+4 to open Compile Output. If build errors occur, check that a Qt version and compiler are installed and configured and that the necessary kits are configured.


1 Answers

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.

like image 58
paulsm4 Avatar answered Oct 04 '22 19:10

paulsm4