QtCreator does not generate kits for android
-
I run Manjaro and have installed everything necessary for android development:
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. -
@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.
-
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. -
@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.
-
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 -
Did you install Android package under SDK Manager?
I have the
SDK Platform
andGoogle APIs Intel x86 Atom_64 System Image
under Android 12Also 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 appsThis 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
. -
@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.