Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 4.6.2, Qt Creator 4.8.0-beta1
-
None
Description
I'm working around QTCREATORBUG-20419 by hitting "Create Templates" and then setting "Minimum required SDK" and/or "Target SDK" to "API 21: Android 5.0" in AndroidManifest.xml. When I do this, I get a different error:
14:51:37: Running steps for project untitled3... 14:51:37: Configuration unchanged, skipping qmake step. 14:51:37: Starting: "/home/mitch/dev/Android/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" make: Nothing to be done for `first'. 14:51:38: The process "/home/mitch/dev/Android/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" exited normally. 14:51:38: Removing directory /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build/assets 14:51:38: Removing directory /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build/libs 14:51:38: Starting: "/home/mitch/dev/Android/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" INSTALL_ROOT=/home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build install /home/mitch/dev/qt5.11-android-debug/qtbase/bin/qmake -install qinstall -exe libuntitled3.so /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build/libs/armeabi-v7a/libuntitled3.so 14:51:38: The process "/home/mitch/dev/Android/android-ndk-r10e/prebuilt/linux-x86_64/bin/make" exited normally. 14:51:38: Starting: "/home/mitch/dev/qt5.11-android-debug/qtbase/bin/androiddeployqt" --input /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-libuntitled3.so-deployment-settings.json --output /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build --android-platform android-21 --jdk /home/mitch/dev/Java/jdk1.8.0_171 --gradle Generating Android Package Input file: /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-libuntitled3.so-deployment-settings.json Output directory: /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/android-build/ Application binary: /home/mitch/dev/temp/untitled3-qt5_11_android_debug-Debug/libuntitled3.so Android build platform: android-21 Install to device: No FAILURE: Build failed with an exception. * What went wrong: Failed to load native library 'libnative-platform.so' for Linux i386. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Building the android package failed! -- For more information, run this command with --verbose. -- Skipping /home/mitch/dev/qt5.11-android-debug/qtbase/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so. -- Skipping /home/mitch/dev/qt5.11-android-debug/qtbase/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so,lib/libQt5Widgets.so. 14:51:38: The process "/home/mitch/dev/qt5.11-android-debug/qtbase/bin/androiddeployqt" exited with code 14. Error while building/deploying project untitled3 (kit: qt5.11-android-debug) When executing step "Build Android APK" 14:51:38: Elapsed time: 00:01.
untitled3.tar.xz is the project I'm trying to build. That attachment contains the android folder.
The configure arguments I use when building Qt 5.11 (shadow build):
configure -v -debug -developer-build -opensource -confirm-license -xplatform android-g++ -nomake tests -nomake examples -android-ndk-platform android-21 -android-ndk /home/mitch/dev/Android/android-ndk-r10e -android-sdk /home/mitch/dev/Android/Sdk -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -no-warnings-are-errors
I only have Android 5.0 (Lollipop) installed, which is API level 21.
As per the Wiki page, I installed the 32 bit libraries:
apt-get install libc6-i386