Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.14.2
-
None
Description
I installed QtCreator 4.12.0 with Qt 5.14.2. I'm using NDK r12b.
I compiled TinyXML library. This generated me files "sde3p_tinyxml_armeabi-v7a.so" and "libsde3p_tinyxml-g_armeabi-v7a.so" (for debug). When I was using an older version (QtCreator 4.8.0 with Qt 5.12 and NDK r18b), there was no such ABI suffix.
Now I try to link tinyXML from a sample program. I create a simple Qt project from QtCreator wizard and I add link statements as I used to:
CONFIG(release, debug|release) { LIBS += C:/dev/vobs_2019/vobs_ext/libcpp/tinyxml/tinyxml-2.6.2/lib/android/r21b/Release/libsde3p_tinyxml_armeabi-v7a.so ANDROID_EXTRA_LIBS += C:/dev/vobs_2019/vobs_ext/libcpp/tinyxml/tinyxml-2.6.2/lib/android/r21b/Release/libsde3p_tinyxml_armeabi-v7a.so } CONFIG(debug, debug|release) { LIBS += C:/dev/vobs_2019/vobs_ext/libcpp/tinyxml/tinyxml-2.6.2/lib/android/r21b/Debug/libsde3p_tinyxml-g_armeabi-v7a.so ANDROID_EXTRA_LIBS += C:/dev/vobs_2019/vobs_ext/libcpp/tinyxml/tinyxml-2.6.2/lib/android/r21b/Debug/libsde3p_tinyxml-g_armeabi-v7a.so }
This works fine, however, as I plan to support x86 soon, I want to make this dynamic, so I replace all 4 instances of `armeabi-v7a` by `$${ANDROID_TARGET_ARCH}` in my `LIBS` and `ANDROID_EXTRA_LIBS` assignments above.
Then I get the error:
External library C:/dev/vobs_2019/vobs_ext/libcpp/tinyxml/tinyxml-2.6.2/lib/android/r21b/Release/libsde3p_tinyxml_arm64-v8a.so does not exist!
But why? I'm not targetting `arm64-v8a`.
If I add `message( "HELLO: $${ANDROID_TARGET_ARCH}" )` in my pro file and run `qmake.exe TestQTXml.pro -spec android-clang "CONFIG+=qtquickcompiler" ANDROID_ABIS="armeabi-v7a"` it outputs:
Project MESSAGE: HELLO: arm64-v8a Project MESSAGE: HELLO: armeabi-v7a
Why is `arm64-v8a` reported as used while I only target `armeabi-v7a` (only this ABI is checked in my project settings) ?
Attachments
Issue Links
- relates to
-
QTBUG-81866 Android, wrong libraries added as ANDROID_EXTRA_LIBS for armeabi-v7a
-
- Closed
-