DaveK
DaveK

Reputation: 715

Qt Missing compiler for Android

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:

From Qt Maintenance tool, Installed Qt 5.12.0 for Android x86, ARM64-v8a, ARMv7:

Qt Maintenance Tool Installed Components - screen shot

Within Qt Creator Tools>Options>Devices>Android I have set the paths of the JDK, SDK, & NDK and run "Update Installed": Qt Creator>Tools>Options>Devices>Android - screen shot

If I go to Tools>Options>Kits>Qt Versions I see several versions, each is missing a compiler (compiler varies based on version): Qt Creator>Tools>Options>Kits>Qt Versions screen shot

But in Compilers, here is all I see: Qt Creator>Tools>Options>Kits>Compilers - screen shot

In looking through the NDK I did see these, are these related to what I am looking for?: \Android\Sdk\ndk-bundle\toolchains\x86_64-4.9\prebuilt\windows-x86_64\bin - screen shot

Upvotes: 1

Views: 2511

Answers (1)

HoswonLiu
HoswonLiu

Reputation: 51

When I update my QtCreator(community) from 4.7.1 to 4.9.1, everything is ok.

Upvotes: 1

Related Questions