linux上的QT Creator可以创建.exe文件吗

发布于 2024-07-24 10:01:40 字数 142 浏览 10 评论 0原文

我已经在 OpenSUSE Linux 发行版中安装了 QT Creator,我是否可以知道是否可以创建在 Linux 中完美执行的 QT 程序的“.exe”。

如果是这样,请提及在 Linux 中创建 .exe 的过程。

感谢你

I ve installed QT Creator in OpenSUSE Linux distro, Can i know if it is possible to create ".exe" of QT program which is perfectly executing in Linux.

If so kindly mention the procedure to create .exe in Linux.

Thank U

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丶视觉 2024-07-31 10:01:40

据我所知,您有一个 Qt 应用程序,您可以使用 QtCreator 在 OpenSuse 上编译它,并且您希望在 OpenSuse 上创建同一应用程序的 Windows 二进制文件。

最简单的方法是安装 Qt SDK(以及 QtCreator,如果需要)并在 Windows 计算机上编译代码。

如果没有,请查看 http://silmor.de/29

jrh


更新:回应您的评论:

在这种情况下,您需要在 Windows 的 Linux 上交叉编译代码。 (你显然知道这一点,因为你已经很好地标记了你的问题)。

  1. 您需要在Linux上安装MinGW: http://www.mingw.org/wiki/LinuxCrossMinGW
  2. 现在按照此链接上的说明进行操作(从http://silmor.de/29)。

这应该就是全部了。

杰瑞赫

I understand that you have a Qt application, and you are able to compile it on OpenSuse using QtCreator, and you want to create a windows binary of the same application on OpenSuse.

The most hassle free method of doing this is to install the Qt SDK (and QtCreator, if need be) and compile your code on a windows machine.

If not, take a look at http://silmor.de/29.

jrh


UPDATE: in response to your comment:

in that case you need to cross compile your code on linux for windows. (you obviously know this, as you have tagged your question well).

  1. You need to install MinGW on linux: http://www.mingw.org/wiki/LinuxCrossMinGW
  2. Now follow the instructions on this link (link recovered from http://silmor.de/29).

This should be all.

jrh

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文