Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to make build and deploying the Qt application faster for android?
QtWS25 Last Chance

How to make build and deploying the Qt application faster for android?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 2.5k Views
  • 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.
  • vishnuV Offline
    vishnuV Offline
    vishnu
    wrote on last edited by vishnu
    #1

    Hello,
    Though my CPU is 2.8Ghz and i5 processor, the building and delpoying speed of my Qt application is little bit slow. May i know how can i make it run faster?
    I tried putting the Make Arguments as -j4 but i see no difference in Deployment speed. Any tips to increase the building, running, delpoying speed of Qt application. Thanks

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

      Hi,

      There's not much you can do, the files are transferred via USB to your device so that generally take some time. It's not really Qt related since adb is coming from the Android dev package.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      vishnuV 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        There's not much you can do, the files are transferred via USB to your device so that generally take some time. It's not really Qt related since adb is coming from the Android dev package.

        vishnuV Offline
        vishnuV Offline
        vishnu
        wrote on last edited by
        #3

        @SGaist
        okay. Atleast for windows PC can we do something? Thanks

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dynamo72
          wrote on last edited by
          #4

          At least for Testing, I think you can omit the qt libraries in the USB transfer and (re)use a General qt libraries folder in your Android device. I haven't tried this for myself yet, though. Anyone?

          vishnuV 1 Reply Last reply
          0
          • D dynamo72

            At least for Testing, I think you can omit the qt libraries in the USB transfer and (re)use a General qt libraries folder in your Android device. I haven't tried this for myself yet, though. Anyone?

            vishnuV Offline
            vishnuV Offline
            vishnu
            wrote on last edited by vishnu
            #5

            @dynamo72
            how can i omit the qtlibraries in usb transfer ?Thanks

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dynamo72
              wrote on last edited by
              #6

              The docs say:

              "To test your application on a device that is physically connected to the development host (or on an emulator), you can copy the Qt libraries into a temporary directory on your device and run the application against them.

              An APK built in this way is not distributable, since it relies on the device containing the Qt libraries in the correct location. However, as the Qt libraries are only copied into the device once, this method provides a fast turn-around time, and is therefore convenient for testing the application during development.

              Select the Deploy local Qt libraries to temporary directory option to deploy Qt libraries to the /data/local/tmp/qt folder on the device and to run the application against them."

              Unfortunately, I don't have the time to try this out in this moment, so I cannot tell exactly which steps are necessary to do this.

              In QtCreator's "project" mode, "create Android-APK" section, "Deployment of Qt" group, try the "copy qt libraries to temporary folder" (German: "Lokale Qt-Bibliotheken in temporäres Verzeichnis kopieren") instead of "embed Qt-libaries in APK".

              1 Reply Last reply
              1

              • Login

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