Qt 5.15 android multiabi migration app from Qt5.12 to Qt5.15 issue
Unsolved
Mobile and Embedded
-
Hi all,
I have a problem traying to migrate an android lib from Qt5.12 to Qt5.15.
For some reason when I create a project for armv7 the project is also called in armv8.
Here it is the .pro file
QT -= gui CONFIG += c++11 console CONFIG -= app_bundle # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target android: message("QtAV.pro ANDROID_TARGET_ARCH = $$ANDROID_TARGET_ARCH") android: message("QtAV.pro TARGET_ARCH = $$TARGET_ARCH") android: message("QtAV.pro QT_ARCH = $$QT_ARCH") android: message("QtAV.pro ANDROID_ARCHITECTURE = $$ANDROID_ARCHITECTURE")
Here it is the output of qmake.
12:12:31: Running steps for project ex1... 12:12:31: Starting: "/opt/extra/qt/5.15.3/android/bin/qmake" /opt/extra/workbench/example/ex1/ex1.pro -spec android-clang CONFIG+=debug CONFIG+=qml_debug ANDROID_ABIS=armeabi-v7a Project MESSAGE: QtAV.pro ANDROID_TARGET_ARCH = arm64-v8a Project MESSAGE: QtAV.pro TARGET_ARCH = Project MESSAGE: QtAV.pro QT_ARCH = arm64-v8a Project MESSAGE: QtAV.pro ANDROID_ARCHITECTURE = Project MESSAGE: QtAV.pro ANDROID_TARGET_ARCH = armeabi-v7a Project MESSAGE: QtAV.pro TARGET_ARCH = Project MESSAGE: QtAV.pro QT_ARCH = armeabi-v7a Project MESSAGE: QtAV.pro ANDROID_ARCHITECTURE = 12:12:31: The process "/opt/extra/qt/5.15.3/android/bin/qmake" exited normally. 12:12:31: Starting: "/opt/extra/android/ndk/21.3.6528147/prebuilt/linux-x86_64/bin/make" -f /opt/extra/workbench/example/build-ex1-Android_Qt_5_15_3_Clang_Multi_Abi-Debug/Makefile qmake_all make: Nothing to be done for 'qmake_all'. 12:12:31: The process "/opt/extra/android/ndk/21.3.6528147/prebuilt/linux-x86_64/bin/make" exited normally. 12:12:31: Elapsed time: 00:00.
Does anybody know why QT_ARCH and ANDROID_TARGET_ARCH is setup to arm64-v8a if ANDROID_ABIS=armeabi-v7a?
A lot of thanks.
Gus