我应该在Linux或Windows中交叉编译吗?

问题描述:

要使用Qt SDK在Linux中创建.exe,我应该在Linux中交叉编译我的应用程序还是在Windows中交叉编译我的应用程序?

To create a .exe in Linux using Qt SDK, should I cross compile my application in Linux or cross-compile my application in Windows?

您需要在 Linux Linux上用于 Windows的交叉编译.

You need to cross compile on Linux, for windows.

  1. Linux 上安装MinGW.
  2. Linux
  3. 交叉编译您的Qt代码.应该生成Windows二进制文件( .exe ).
  4. 您完成了.借助Qt运行时库,可以在任何Windows系统上愉快地执行exe.
  1. install MinGW on Linux.
  2. cross-compile your Qt code on Linux. A windows binary (.exe) should be produced.
  3. You are done. Happily execute the exe on any windows system with Qt runtime libraries.

希望能解决所有问题.

jrh