我应该在Linux或Windows中交叉编译吗? [英] Should I cross-compile in Linux or Windows?

查看:89
本文介绍了我应该在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

这篇关于我应该在Linux或Windows中交叉编译吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆