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. QtCreator does not generate kits for android
QtWS25 Last Chance

QtCreator does not generate kits for android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qtcreatorandroidkits
9 Posts 4 Posters 3.8k 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.
  • M Offline
    M Offline
    MrPotato
    wrote on last edited by
    #1

    I run Manjaro and have installed everything necessary for android development:9282c3b9-959c-4f14-a316-22a5f17fa57d-image.png
    However, even though I have checked the box for "Automatically create kits for Android tool chains", nothing has been generated. Is there a solution for this besides creating the kits manually? If not, can someone please share with me the kits for the android toolchains along with the compiler and debugger paths and configs? So that I can add them myself.

    J.HilkJ 1 Reply Last reply
    0
    • M MrPotato

      @J-Hilk How do I do that on Linux (Arch based system)? I know that in Windows it's trivial to do with the installer, but what steps do I follow on Linux?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @MrPotato said in QtCreator does not generate kits for android:

      but what steps do I follow on Linux?

      Same as on Windows: either using Qt Online Installer (select Qt for Android there), or if you already installed Qt using online installer start Qt Maintenance Tool and select Qt for Android there.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #2

        You may need to set jdk/bin to PATH. Also try to install android-studio(free) and use it to install SDK (for example Android 11). It is easier to create a virtual device with android-studio as well to display your app.
        After you finish these above, then do the settings on Android tab of qt creator. This works for me.

        1 Reply Last reply
        0
        • M MrPotato

          I run Manjaro and have installed everything necessary for android development:9282c3b9-959c-4f14-a316-22a5f17fa57d-image.png
          However, even though I have checked the box for "Automatically create kits for Android tool chains", nothing has been generated. Is there a solution for this besides creating the kits manually? If not, can someone please share with me the kits for the android toolchains along with the compiler and debugger paths and configs? So that I can add them myself.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #3

          @MrPotato Android Device settings looks fine.

          Did you actually download the Qt for Android precompiled libraries ? Without those, there will be no auto generated Qt for Android kit


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          M 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @MrPotato Android Device settings looks fine.

            Did you actually download the Qt for Android precompiled libraries ? Without those, there will be no auto generated Qt for Android kit

            M Offline
            M Offline
            MrPotato
            wrote on last edited by
            #4

            @J-Hilk How do I do that on Linux (Arch based system)? I know that in Windows it's trivial to do with the installer, but what steps do I follow on Linux?

            jsulmJ 1 Reply Last reply
            0
            • M MrPotato

              @J-Hilk How do I do that on Linux (Arch based system)? I know that in Windows it's trivial to do with the installer, but what steps do I follow on Linux?

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #5

              @MrPotato said in QtCreator does not generate kits for android:

              but what steps do I follow on Linux?

              Same as on Windows: either using Qt Online Installer (select Qt for Android there), or if you already installed Qt using online installer start Qt Maintenance Tool and select Qt for Android there.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • jsulmJ jsulm

                @MrPotato said in QtCreator does not generate kits for android:

                but what steps do I follow on Linux?

                Same as on Windows: either using Qt Online Installer (select Qt for Android there), or if you already installed Qt using online installer start Qt Maintenance Tool and select Qt for Android there.

                M Offline
                M Offline
                MrPotato
                wrote on last edited by MrPotato
                #6

                @jsulm What do I do if I installed QtCreator using pacman? Will Qt Online Installer know the paths of QtCreator installed with pacman?

                1 Reply Last reply
                0
                • JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by JoeCFD
                  #7

                  Did you install Android package under SDK Manager? I am using android 11 with Arm 64 va8.
                  Also show your clang compiler version under Options->kits->kits here.

                  I added /opt/thirdParties/Qt/5.15.2/android/bin to PATH on linux as well. Qt creator will pick it up.
                  Remove /opt/thirdParties/Qt/5.15.2/gcc_64/bin from PATH which is for desktop apps. Qt has another set of qmake and libs for android apps

                  M 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    Did you install Android package under SDK Manager? I am using android 11 with Arm 64 va8.
                    Also show your clang compiler version under Options->kits->kits here.

                    I added /opt/thirdParties/Qt/5.15.2/android/bin to PATH on linux as well. Qt creator will pick it up.
                    Remove /opt/thirdParties/Qt/5.15.2/gcc_64/bin from PATH which is for desktop apps. Qt has another set of qmake and libs for android apps

                    M Offline
                    M Offline
                    MrPotato
                    wrote on last edited by
                    #8

                    @JoeCFD

                    Did you install Android package under SDK Manager?

                    I have the SDK Platform and Google APIs Intel x86 Atom_64 System Image under Android 12

                    Also show your clang compiler version

                    clang version 13.0.1
                    Target: x86_64-pc-linux-gnu
                    Thread model: posix
                    InstalledDir: /bin
                    

                    I added /opt/thirdParties/Qt/5.15.2/android/bin to PATH on linux as well. Qt creator will pick it up.
                    Remove /opt/thirdParties/Qt/5.15.2/gcc_64/bin from PATH which is for desktop apps. Qt has another set of qmake and libs for android apps

                    This is all I have related to android defined as a folder:

                    /usr/share/qtcreator/android
                    /usr/include/linux/android
                    /usr/include/lldb/Host/android
                    /usr/include/c++/v1/__support/android
                    /usr/lib/qt6/mkspecs/common/android
                    /usr/lib/qt6/mkspecs/features/android
                    /usr/lib/qt/mkspecs/common/android
                    /usr/lib/qt/mkspecs/features/android
                    /home/andrew/Android/Sdk/platforms/android-31/optional/libbinder_ndk_cpp/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/simpleperf/bin/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/simpleperf/app_api/java/com/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/support/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/sources/android
                    /home/andrew/Android/Sdk/ndk/22.1.7171670/sources/cxx-stl/llvm-libc++/include/support/android
                    /home/andrew/Android/Sdk/tools/lib/external/com/android
                    /home/andrew/Android/Sdk/cmdline-tools/latest/lib/external/com/android
                    /home/andrew/.config/QtProject/qtcreator/android
                    /home/andrew/.vscode/extensions/ms-python.vscode-pylance-2022.4.3/dist/typeshed-fallback/stubs/selenium/selenium/webdriver/android
                    

                    I do not have any Qt related paths in /opt.

                    M 1 Reply Last reply
                    0
                    • M MrPotato

                      @JoeCFD

                      Did you install Android package under SDK Manager?

                      I have the SDK Platform and Google APIs Intel x86 Atom_64 System Image under Android 12

                      Also show your clang compiler version

                      clang version 13.0.1
                      Target: x86_64-pc-linux-gnu
                      Thread model: posix
                      InstalledDir: /bin
                      

                      I added /opt/thirdParties/Qt/5.15.2/android/bin to PATH on linux as well. Qt creator will pick it up.
                      Remove /opt/thirdParties/Qt/5.15.2/gcc_64/bin from PATH which is for desktop apps. Qt has another set of qmake and libs for android apps

                      This is all I have related to android defined as a folder:

                      /usr/share/qtcreator/android
                      /usr/include/linux/android
                      /usr/include/lldb/Host/android
                      /usr/include/c++/v1/__support/android
                      /usr/lib/qt6/mkspecs/common/android
                      /usr/lib/qt6/mkspecs/features/android
                      /usr/lib/qt/mkspecs/common/android
                      /usr/lib/qt/mkspecs/features/android
                      /home/andrew/Android/Sdk/platforms/android-31/optional/libbinder_ndk_cpp/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/simpleperf/bin/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/simpleperf/app_api/java/com/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/support/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/sources/android
                      /home/andrew/Android/Sdk/ndk/22.1.7171670/sources/cxx-stl/llvm-libc++/include/support/android
                      /home/andrew/Android/Sdk/tools/lib/external/com/android
                      /home/andrew/Android/Sdk/cmdline-tools/latest/lib/external/com/android
                      /home/andrew/.config/QtProject/qtcreator/android
                      /home/andrew/.vscode/extensions/ms-python.vscode-pylance-2022.4.3/dist/typeshed-fallback/stubs/selenium/selenium/webdriver/android
                      

                      I do not have any Qt related paths in /opt.

                      M Offline
                      M Offline
                      MrPotato
                      wrote on last edited by MrPotato
                      #9

                      @MrPotato On the arch wiki I'm told to build:

                      android-armv7a-eabi-qt5AUR - armeabi-v7a
                      android-aarch64-qt5AUR - aarch64
                      android-x86-qt5AUR - x86
                      android-x86-64-qt5AUR - x86_64
                      

                      from the AUR. But apparently the packages have been dropped. From the maintainer:

                      I'll drop this package, I been thinking and there are a lot of strong reasons not to waste any time maintaining it.
                      KDE doesn't provide an easy way to download the entire Qt source code in a single package, like in the official Qt releases.
                      Also, KDE doesn't provides tagged versions, I've to keep tracking manually the latest commits, or converting it to a git package.
                      It will require to split this package into 47x4 packages, 47 Qt modules and 4 architectures to maintain, that's 188 packages to maintain, absurd!
                      Cloning a git repository is slower than just downloading a source package file, making the build even much slower and painful.
                      Is a lot of work for something that will be dead in 1 year or 2 at most.
                      Good luck to the one that will step up to take care of this monstrosity, to the rest of developers, don't be lazy and consider switching to Qt6.

                      Which leaves me with the only alternative being to use the Qt Online Installer. I guess this must be the only option. Which is a bummer, because now I'll have duplicate packages on my system.

                      1 Reply Last reply
                      0

                      • Login

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