Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Android: build with Linux



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



  • 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



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



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



  • 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