Should I cross-compile in Linux or Windows?

后端 未结 3 1968
长情又很酷
长情又很酷 2020-12-06 14:10

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

3条回答
  •  情书的邮戳
    2020-12-06 14:28

    You need to cross compile on Linux, for windows.

    EDIT:

    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.

    Hope that clears things up.

    jrh

提交回复
热议问题