创建可以在Linux和Windows上执行的.exe文件由QT创建者

时间:2020-12-10 13:16:17

I am trying to Create an application by using Qt Creator under Linux, I want to have an .exe file that can be run on both Windows and Linux platform ,how can I do this?

我想在Linux下使用Qt Creator创建一个应用程序,我希望有一个可以在Windows和Linux平台上运行的.exe文件,我该怎么做?

1 个解决方案

#1


1  

Qt Creator provides support for building and running Qt applications for desktop environments (Windows, Linux, FreeBSD and Mac OS) and mobile devices (Android, BlackBerry, Maemo, and MeeGo). Build settings allow you to switch between build targets. For mobile device targets, Qt Creator can generate an installation package, install it to a mobile device that is attached to the development computer and run it there. Installation packages can be published on the Ovi Store.

Qt Creator支持为桌面环境(Windows,Linux,FreeBSD和Mac OS)和移动设备(Android,BlackBerry,Maemo和MeeGo)构建和运行Qt应用程序。构建设置允许您在构建目标之间切换。对于移动设备目标,Qt Creator可以生成安装包,将其安装到连接到开发计算机的移动设备上并在那里运行。安装包可以在Ovi商店中发布。

So you have to seperately build application for windows and linux to run your QT application. You can see more on Creating executable for Windows using Qt on Linux

所以你必须单独构建windows和linux应用程序来运行你的QT应用程序。您可以在Linux上使用Qt查看有关为Windows创建可执行文件的更多信息

Thanks & Regards,
Alok Thaker

谢谢和问候,Alok Thaker

#1


1  

Qt Creator provides support for building and running Qt applications for desktop environments (Windows, Linux, FreeBSD and Mac OS) and mobile devices (Android, BlackBerry, Maemo, and MeeGo). Build settings allow you to switch between build targets. For mobile device targets, Qt Creator can generate an installation package, install it to a mobile device that is attached to the development computer and run it there. Installation packages can be published on the Ovi Store.

Qt Creator支持为桌面环境(Windows,Linux,FreeBSD和Mac OS)和移动设备(Android,BlackBerry,Maemo和MeeGo)构建和运行Qt应用程序。构建设置允许您在构建目标之间切换。对于移动设备目标,Qt Creator可以生成安装包,将其安装到连接到开发计算机的移动设备上并在那里运行。安装包可以在Ovi商店中发布。

So you have to seperately build application for windows and linux to run your QT application. You can see more on Creating executable for Windows using Qt on Linux

所以你必须单独构建windows和linux应用程序来运行你的QT应用程序。您可以在Linux上使用Qt查看有关为Windows创建可执行文件的更多信息

Thanks & Regards,
Alok Thaker

谢谢和问候,Alok Thaker