Unsolved How to create apk file for Desktop GUI
-
I am using Qt to create a GUI for desktop applications. I have done it successfully. But the problem is how do I use this GUI in other desktops where there is no Qt creator installed??
-
Hi
You bundle all Qt DLLs with your exe. A so-called deployment folder.There is a tool to help with this
https://doc.qt.io/qt-5/windows-deployment.htmlYou then need to wrap this folder with your exe and all needed DLLS into an installer.
Qt has its own installer maker
https://doc.qt.io/qtinstallerframework/or your you can use a other open source installer like
https://jrsoftware.org/isinfo.phpIf for linux Desktop the story is a bit different.
-
@mrjj
Sorry, I did not understand. Could you please explain in detail with steps. -
@savithaKM said in How to create apk file for Desktop GUI:
Sorry, I did not understand. Could you please explain in detail with steps.
What did you not understand?
Did you read the links attached to @mrjj post? -
@mrjj
I did not understand where we get exe file. When we create a desktop widget application, the following files will generated
Qt Project File
USER file
C++ source file
Header fie
Qt UI file
Do we need to generate exe file out of this project? -
@savithaKM said in How to create apk file for Desktop GUI:
I did not understand where we get exe file.
The exe file is the result of project compilation.
-
@KroMignon
if we need to create apk to use in other systems, should the project be built in release mode?
Should the .dll files be copied to the same release folder?
I did copied Qt5Core.dll,Qt5SerialPort.dll,QT5Widgets.dll in the release folder.
when i try to run the .exe file, it is showing the following error:
This application is failed to start because no Qt platform plugin could be initialized -
@savithaKM said in How to create apk file for Desktop GUI:
if we need to create apk to use in other systems, should the project be built in release mode?
What kind of APK?
APK is for Android devices, this has nothing to do with Desktop application. -
I mean, I need to create an app(for my GUI) where it can be used in any other desktop where Qt software is not needed to be installed
-
@savithaKM said in How to create apk file for Desktop GUI:
I mean, I need to create an app(for my GUI) where it can be used in any other desktop where Qt software is not needed to be installed
I am not sure to right understand your problem, so I try to rephrase it, feel free to say what's wrong, what's right:
- you have create a GUI Qt project for desktop
- you want to distribute this application
What is the target operating system:
- Linux?
- Windows?
- macOS?
To deploy your application there are many resources on Qt which describes what you have to do:
- for Windows: use windeployqt.exe cf. https://doc.qt.io/qt-5/windows-deployment.html
- for Linux: you have to do more "by hand" cf. https://doc.qt.io/qt-5/linux-deployment.html
- for macOS (I never do it): follow https://doc.qt.io/qt-5/macos-deployment.html