Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create apk file for Desktop GUI
Forum Updated to NodeBB v4.3 + New Features

How to create apk file for Desktop GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 899 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savithaKM
    wrote on last edited by
    #1

    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??

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      You 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.php

      If for linux Desktop the story is a bit different.

      S 2 Replies Last reply
      1
      • mrjjM mrjj

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

        You 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.php

        If for linux Desktop the story is a bit different.

        S Offline
        S Offline
        savithaKM
        wrote on last edited by
        #3

        @mrjj
        Sorry, I did not understand. Could you please explain in detail with steps.

        KroMignonK 1 Reply Last reply
        0
        • S savithaKM

          @mrjj
          Sorry, I did not understand. Could you please explain in detail with steps.

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @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?

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          0
          • mrjjM mrjj

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

            You 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.php

            If for linux Desktop the story is a bit different.

            S Offline
            S Offline
            savithaKM
            wrote on last edited by
            #5

            @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?

            KroMignonK 1 Reply Last reply
            0
            • S savithaKM

              @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?

              KroMignonK Offline
              KroMignonK Offline
              KroMignon
              wrote on last edited by
              #6

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

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              S 1 Reply Last reply
              3
              • KroMignonK KroMignon

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

                S Offline
                S Offline
                savithaKM
                wrote on last edited by
                #7

                @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

                KroMignonK 1 Reply Last reply
                0
                • S savithaKM

                  @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

                  KroMignonK Offline
                  KroMignonK Offline
                  KroMignon
                  wrote on last edited by
                  #8

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

                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    savithaKM
                    wrote on last edited by
                    #9

                    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

                    KroMignonK 1 Reply Last reply
                    0
                    • S savithaKM

                      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

                      KroMignonK Offline
                      KroMignonK Offline
                      KroMignon
                      wrote on last edited by
                      #10

                      @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

                      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                      1 Reply Last reply
                      3

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved