Can QT Creator on linux create .exe files

有些话、适合烂在心里 提交于 2019-12-13 10:33:04

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/1011845/can-qt-creator-on-linux-create-exe-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!