Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt5 for Android: incompatible ABI

I recently installed Qt5 and works like a charm for API 17 and armeabi-v7a.
But I added second AVD with other parameters (of course, I installed packages in AVD settings). Now, I can't compile first project and new project for API10. When check any toolchain (armeabi or armeabi-v7a), window for choose AVD says that I don't have compatible AVD (in message displays that AVD supports default/armeabi or default/armeabi-v7a).
Anyone know how I can repair this? I think that problem is with "default/"...

like image 222
aso Avatar asked Mar 06 '14 23:03

aso


People also ask

How to use Qt for Android development?

Integrate Java code into your application using Qt Android Extras. Develop secure applications using OpenSSL library. Create Android Services. Create and deploy Application Package (APK) and Android App Bundle (AAB) packages using Qt Creator. The following topics provide more details about how to use Qt for Android:

Does Qt5 work with API 17 and armeabi-v7a?

I recently installed Qt5 and works like a charm for API 17 and armeabi-v7a. But I added second AVD with other parameters (of course, I installed packages in AVD settings).

What is an application binary interface (ABI) in Android?

Different Android devices use different CPUs, which in turn support different instruction sets. Each combination of CPU and instruction set has its own Application Binary Interface (ABI). An ABI includes the following information:

What parts of the ABI are in the Android variant?

The Android variant includes Thumb-2 and the VFP hardware floating point instructions, specifically VFPv3-D16, which includes 16 dedicated 64-bit floating point registers. For information about the parts of the ABI that aren't Android-specific, see Application Binary Interface (ABI) for the ARM Architecture


1 Answers

There seems to be another workaround for this problem:

In QtCreator -> Projects -> BuildEnvironment add the variable

ANDROID_TARGET_ARCH=default/armeabi-v7a

Then the AVDs are shown as compatible.

like image 187
Thomas Kemner Avatar answered Sep 19 '22 15:09

Thomas Kemner