Linux上的QT Creator是否可以创建.exe文件 [英] Can QT Creator on linux create .exe files

查看:474
本文介绍了Linux上的QT Creator是否可以创建.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在OpenSUSE Linux发行版中安装了QT Creator,我能否知道是否可以创建在Linux中完美执行的QT程序的 .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.

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

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

谢谢U

推荐答案

我了解您有一个Qt应用程序,并且能够使用QtCreator在OpenSuse上进行编译,并且希望在OpenSuse上创建同一应用程序的Windows二进制文件。

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.

最简便的方法是安装Qt SDK(如果需要,还可以安装QtCreator),然后在Windows计算机上编译代码。

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.

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

jrh

更新:针对您的评论:

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

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. 您需要在Linux上安装MinGW: http://www.mingw.org/wiki/LinuxCrossMinGW

  2. 现在请遵循此链接(从 http://silmor.de/29 )。

  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).

这应该是全部。

jrh

这篇关于Linux上的QT Creator是否可以创建.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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