I have just installed Qt 5.9.1 and want to make an app for Android (I'm using Windows 10).
I have installed the SDK, NDK and ant and specified the paths in the configuration. But Qt gives the following warning:
Qt versions for 6 architectures are missing. To add the Qt versions,
select Options > Build & Run > Qt Versions
When I go to Qt Versions I can only see Qt 5.9.1 MinGW 32bit.
I've googled this and a solution to a similar issue was to download the Android version of Qt from the Qt download page:
But that Android version is only 5.6. I'm gonna use Qt Quick Controls 2, which is not available until version 5.7, according to this:
Qt Quick Controls 2 provides a set of controls that can be used to
build complete interfaces in Qt Quick. The module was introduced in Qt
5.7.
Does anyone know what is causing this? Is there some other way I can get the files needed to build for Android and keep Qt version 5.9?
Related
I am trying to setup Qt so that I can build & deploy from my Windows 10 machine, to an Android tablet.
However from Tools>Options>Kits>Qt Versions... I get "No compiler can produce code for this Qt version. Please define one or more compilers for x86-linux-android-elf-32bit".
(or instead of 'x86-linux...' it says 'arm-linux-android-elf-32bi't or 'arm-linux-android-elf-64bit', depending on the Qt version I have selected in this window).
Do I need to manually add C and C++ compilers for the Android SDK/NDK to Qt? Where would I find these?
I have installed:
Qt: 5.12.0
Qt Creator: 4.7.0 (Community)
Android SDK: 3.2.1 64-bit Windows.
Android NDK: r18b Windows 64-bit.
Java JDK: Java SE Development Kit 8u191
From Qt Maintenance tool, Installed Qt 5.12.0 for Android x86, ARM64-v8a, ARMv7:
Within Qt Creator Tools>Options>Devices>Android I have set the paths of the JDK, SDK, & NDK and run "Update Installed":
If I go to Tools>Options>Kits>Qt Versions I see several versions, each is missing a compiler (compiler varies based on version):
But in Compilers, here is all I see:
In looking through the NDK I did see these, are these related to what I am looking for?:
When I update my QtCreator(community) from 4.7.1 to 4.9.1, everything is ok.
I installed Qt 5.11.2(http://download.qt.io/official_releases/qt/5.11/5.11.2/qt-opensource-windows-x86-5.11.2.exe) to build an Android app. Qt creator auto-detects 3 Qt versions:
Qt 5.11.2 for Android ARMv7,
Qt 5.11.2 for Android x86,
Qt 5.11.2 MinGW 32bit.
I think they are all 32 bit.
But when I created a project, in the "select Kits" step, it says "Android has not been configured. Create Android kits.". When I clicked the "configure" button, in Device/Android, it says "Cannot create kits for all architectures. Qt versions are missing for the following architectures: arm-linux-android-elf-64bit, x86-linux-android-elf-64bit. To add the Qt version,select Options > Build&Run > Qt Versions". But I do not want to build the 64 bit app. I just want to build the 32bit app using the existing Qt versions. How to bypass this error and build a 32bit Android app? I wonder why it refers to the 64 bit architectures, just because the 32 bit qt is installed on 64 bit machine?
I am an absolute beginner. I want to install Qt for android development.
I followed the instructions for installing Qt as specified on Qt's website. I installed android manager and set up SDK, NDK, ant and JDK. After this I specified there locations in Qt but Qt is not detecting any kits at all. Why? Is there something that i am missing?
It might help to know that I an running Qt on ubuntu 16.04.3 and my Qt's version is Qt Creator (community) open source free
If I manually add a kit what should I do about sysroot and other empty fields.
What do i do about the empty fields
I have the similar problem. Problem was with NDK version.
The newest NDK version doesn't contains executable gcc compilers (it use clang compiler). I must use NDK version 15.
I had to configure manually as well for embedded linux.. To configure manually, in case you did all the configuration to a new qt, i just gotta select your compiler and change the qt version to the one you configured for the cross compiler. All the other option, let by default. Make sure your cross compiler command is set in your PATH.
This qt version is the path to your qmake.
www.qt.io/download-open-source/
Under offline installers for windows, I have already downloaded and used Qt 5.5 for win32 (MinGW). I want to start developing android apps.
So can I just install some extras or do I have to download the 1GB Qt 5.5 for Android too?
Thanks.
It's not necessary.
Open your Qt Maintenance Tool and expand the version Qt 5.5. You will see some checkboxes where you can select the Android compilers or packages and update your Qt framework.
After that, remember that you need to configure Qt Creator in order to have the necessary Android kits which will be used in your projects.
I installed Qt-5.1.0-rc1-android on linux and added all of the available Qt versions in the Build & Run tab in QtCreator (that are android_armv7, android_x86 and gcc_64).
But the Creator keeps telling me Qt version for architecture mips is missing, to add the Qt version, select Options > Build & Run > Qt Versions..
Is there some dependency missing I don't know about?
Prefer setup android NDK in Android settings category, after that required Kits will be added automatically. But I'm not sure that Qt 5.1.0 for android contains mips images too. If it doesn't, you should build Qt for mips manually.
Because of missing support for MIPS in the JavaScript engine used in QtQuick 2, there is no binary package for that architecture.
If your app does not require Qt Quick 2, you can build Qt manually for MIPS. If you require Qt Quick 2 for MIPS, unfortunately the only solution right now is to build from the dev repository (which is under active development and not as stable) or wait for Qt 5.2, where this problem should be fixed.
If your app does not require MIPS support, you can safely ignore the warning in Qt Creator.