Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: build with Linux
Forum Update on Monday, May 27th 2025

Android: build with Linux

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidlinuxwindowsjenkinapk
4 Posts 2 Posters 894 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.
  • K Offline
    K Offline
    KroMignon
    wrote on 21 Oct 2019, 07:13 last edited by
    #1

    Hi all,

    I am working on an Android project (Android 7.0 / API 24) with last LTS Qt release (Qt 5.12.5).
    Before this, I've create an other Android project with Qt 5.7.0.

    With Qt 5.7.0, the toolchain is based on GCC, with Qt 5.12.x the toolchain in now Clang, and that is making a big difference in build time! With Clang building the same project takes between 2 and 3 times longer!

    I have a Jenkins build server to build the projects, on my Jenkins I have Windows and Linux clients. For now I build the Android projects with Windows clients (because I now how to do it!)
    Is there someone here how is using Linux to build Android APK?
    Is Linux faster than Windows for this task?
    Do you have also notice longer build time with Clang?
    Is there a chance for me to reduce build time if I use Linux?
    Can someone explain me how I need to configure my Linux machine to build a Qt based Android project?

    Thanks for any help.

    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
    • K KroMignon
      21 Oct 2019, 07:54

      @Dewy Thank for your input, but that is not really a reply to my question.

      I want to know if building a Qt Android project with Qt 5.12.5 + Android NDK 19c (which is Clang based) takes more time then building the same project with Qt 5.7.x + Android NDK 13b (which is gcc based).

      On Windows, the difference is hugh, so before spending too much time convert all my Jenkins build jobs from Windows to Linux and configure Linux machine to be able to build a Qt/Android project, I would got some input from the community.

      I don't think Linux is much or less better than Windows, it is different. If it can help me to reduce build time, I am ready to port the build jobs, but in other case, it don't make sense.

      regards

      K Offline
      K Offline
      KroMignon
      wrote on 7 Nov 2019, 16:22 last edited by
      #4

      I reply to myself, just in case some else has the same issue.

      Switching the Jenkins build slave from Windows7 to Linux (Debian 10) has reduced the APK build time from 40 minutes to 8 minutes! Yes, my project is relative big ;)

      Regards

      Fabrice

      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
      • D Offline
        D Offline
        Dewy
        wrote on 21 Oct 2019, 07:36 last edited by Dewy
        #2

        hi,
        You can prefer the way tools>options>devices and you can see how you need for develop on ubuntu. Windows and Linux needs same things for develop. SDK, NDK, JDK and what you want add.
        Linux is more pratics then windows and you can control everythings. So you should prefer linux when you develop anythings.

        K 1 Reply Last reply 21 Oct 2019, 07:54
        0
        • D Dewy
          21 Oct 2019, 07:36

          hi,
          You can prefer the way tools>options>devices and you can see how you need for develop on ubuntu. Windows and Linux needs same things for develop. SDK, NDK, JDK and what you want add.
          Linux is more pratics then windows and you can control everythings. So you should prefer linux when you develop anythings.

          K Offline
          K Offline
          KroMignon
          wrote on 21 Oct 2019, 07:54 last edited by
          #3

          @Dewy Thank for your input, but that is not really a reply to my question.

          I want to know if building a Qt Android project with Qt 5.12.5 + Android NDK 19c (which is Clang based) takes more time then building the same project with Qt 5.7.x + Android NDK 13b (which is gcc based).

          On Windows, the difference is hugh, so before spending too much time convert all my Jenkins build jobs from Windows to Linux and configure Linux machine to be able to build a Qt/Android project, I would got some input from the community.

          I don't think Linux is much or less better than Windows, it is different. If it can help me to reduce build time, I am ready to port the build jobs, but in other case, it don't make sense.

          regards

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

          K 1 Reply Last reply 7 Nov 2019, 16:22
          0
          • K KroMignon
            21 Oct 2019, 07:54

            @Dewy Thank for your input, but that is not really a reply to my question.

            I want to know if building a Qt Android project with Qt 5.12.5 + Android NDK 19c (which is Clang based) takes more time then building the same project with Qt 5.7.x + Android NDK 13b (which is gcc based).

            On Windows, the difference is hugh, so before spending too much time convert all my Jenkins build jobs from Windows to Linux and configure Linux machine to be able to build a Qt/Android project, I would got some input from the community.

            I don't think Linux is much or less better than Windows, it is different. If it can help me to reduce build time, I am ready to port the build jobs, but in other case, it don't make sense.

            regards

            K Offline
            K Offline
            KroMignon
            wrote on 7 Nov 2019, 16:22 last edited by
            #4

            I reply to myself, just in case some else has the same issue.

            Switching the Jenkins build slave from Windows7 to Linux (Debian 10) has reduced the APK build time from 40 minutes to 8 minutes! Yes, my project is relative big ;)

            Regards

            Fabrice

            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

            • Login

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