Konfiguration 'Qt für Android'/'Qt for Android' configuration [DE/EN]

Verschiedenes zu Qt
Antworten
marcel_at_work
Beiträge: 1
Registriert: 6. Juli 2021 20:29

Konfiguration 'Qt für Android'/'Qt for Android' configuration [DE/EN]

Beitrag von marcel_at_work »

Liebe Community

Ich bin ein absoluter Frischling und möchte nach Jahrzehnten von BASIC auf C++ mittels 'Qt für Android' umsteigen.
Nach der Lektüre eines C++-, sowie auch Qt-Handbuches, startet eine erste Desktopanwendung fehlerlos.

Leider kann ich dies aber von der Einrichtung der Android-Unterstützung keineswegs behaupten.

Seit zwei Wochen sitze ich nun daran und habe schon alles mögliche ausprobiert, aber es will einfach nicht so wie es soll.

Installiert ist aktuell:

JDK 1.8.0_291
NDK r21e
Android OpenSSL Master
cmdline-tools

... über SDK-Manager:

Android SDK Tools (Obsolete) 25.2.5 (dies war ein Lösungsvorschlag aus dem Netz)
Android SDK Platform Tools 31.0.2
Android SDK Build-tools 26-30.0.3
Tools
Android 11
Android R - SDK Platform Android R Preview
Android 10
Android 4.4.2
Extras

... über das Maintainance Tool:

Qt 6.1.1
Qt 5.15.2
fast alle 'Developer and Designer Tools'.

Unter Einstellungen>Geräte werden 'Platform-SDK ist installiert' und 'Für alle installierten Qt-Versionen sind alle notwendigen Pakete installiert' als fehlerhaft angezeigt.

Das dadurch generierte Dialogfeld zeigt folgende fehlende Pakete in der Android-SDK-Installation:

build-tools;30.0.2
ndk;21.3.6528147
platform-tools
platforms;android-30
cmdline-tools;latest
extras;google;usb_driver, also genau die, welche ich manuell installiert habe?!

Unter Kits>Qt-Versionen wird bei allen 'Qt 6'-Anwendungen sowie auch 'Qt 5.15.2 for Android' folgender Fehler angezeigt:

'Kein Compiler kann für diese Qt-Version Code erzeugen. Bitte richten Sie einen Compiler ein, geeignet für [...] unknown-linux-android-elf-unknown'.

Mein System ist übrigens Windows 7, x64.

Es wäre wirklich fantastisch, wenn mir jemand helfen könnte, bevor ich den Rechner aus dem Fenster werfe. :-)

Viele Grüsse aus der Schweiz

Marcel

***** translated ***********************************************************************************************************************

Dear Community

I am a complete newbie and after decades I want to switch from BASIC to C++ using 'Qt for Android'.
After reading a C++, as well as Qt manual, a first desktop application starts flawlessly.

Unfortunately, however, I can by no means say the same about setting up Android support.

For two weeks now I've been sitting at it and have already tried everything possible, but it just doesn't want to work the way it's supposed to.

Installed is currently:

JDK 1.8.0_291
NDK r21e
Android OpenSSL Master
cmdline-tools

... via SDK Manager:

Android SDK Tools (Obsolete) 25.2.5 (this was a suggested solution from the net)
Android SDK Platform Tools 31.0.2
Android SDK Build-tools 26-30.0.3
tools
Android 11
Android R - SDK Platform Android R Preview
Android 10
Android 4.4.2
extras

... via the Maintainance Tool:

Qt 6.1.1
Qt 5.15.2
almost all 'Developer and Designer Tools'.

Under Settings>Devices, 'Platform-SDK is installed' and 'For all installed Qt versions, all necessary packages are installed' are shown as incorrect.

The resulting generated dialog shows the following missing packages in the Android SDK installation:

build-tools;30.0.2
ndk;21.3.6528147
platform-tools
platforms;android-30
cmdline-tools;latest
extras;google;usb_driver, so exactly the ones I installed manually?!

Under Kits>Qt versions, all 'Qt 6' applications as well as 'Qt 5.15.2 for Android' show the following error:

'No compiler can generate code for this Qt version. Please set up a compiler suitable for [...] unknown-linux-android-elf-unknown'.

By the way, my system is Windows 7, x64.

It would be really fantastic if someone could help me before I throw the computer out the window. :-)

Many greetings from Switzerland

Marcel
Antworten