我应该在 Linux 还是 Windows 中交叉编译?

编程入门 行业动态 更新时间:2024-10-25 06:31:15
本文介绍了我应该在 Linux 还是 Windows 中交叉编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

要在 Linux 中使用 Qt SDK 创建 .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,for windows进行交叉编译.

You need to cross compile on Linux, for windows.

  • 在 Linux 上安装 MinGW.
  • 交叉编译您在 Linux 上的 Qt 代码.应生成 Windows 二进制文件 (.exe).
  • 大功告成.在任何带有 Qt 运行时库的 Windows 系统上愉快地执行 exe.
  • install MinGW on Linux.
  • cross-compile your Qt code on Linux. A windows binary (.exe) should be produced.
  • You are done. Happily execute the exe on any windows system with Qt runtime libraries.
  • 希望能解决问题.

    jrh

    更多推荐

    我应该在 Linux 还是 Windows 中交叉编译?

    本文发布于:2023-10-27 11:41:17,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1533252.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Linux   Windows

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!