Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.0
-
None
-
-
73e64a98c696f516aed204cf79bacce7d2179030 (qt/qtbase/dev) 5b0d53863868dd9895cab7f37967a644baf3d586 (qt/qtbase/5.15)
Description
- Download sources
- Follow the building process for windows (https://doc.qt.io/qt-5/android-building.html) but while executing "configure" make sure that you enable flag -developer-build
I've used the command:
..\..\qtbase\configure.bat -xplatform android-clang -developer-build --disable-rpath -nomake tests -nomake examples -android-ndk E:\Android\Sdk\ndk\21.1.6352462 -android-sdk E:\Android\Sdk -android-ndk-host windows-x86_64 -skip qttranslations -skip qtserialport -no-warnings-are-errors -platform win32-g++
3. Build from sources
After building check <qt5_build_path>\qtbase\src\android\templates it should contain "res" directory but it doesn't.
While trying to build any project with builded version for Android the error appears:
16:07:10: Running steps for project test-project... 16:07:10: Starting: "D:\qt-project\qt5\build-android\qtbase\bin\qmake.exe" E:\development\test-apps\test-project\test-project.pro -spec android-clang "CONFIG+=qml_debug" ANDROID_ABIS="armeabi-v7a" 16:07:10: The process "D:\qt-project\qt5\build-android\qtbase\bin\qmake.exe" exited normally. 16:07:10: Starting: "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -f E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/Makefile qmake_all make: Nothing to be done for 'qmake_all'. 16:07:10: The process "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally. 16:07:10: Starting: "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -j6 D:\qt-project\qt5\build-android\qtbase\bin\rcc.exe -name qml ..\test-project\qml.qrc -o armeabi-v7a\qrc_qml.cpp E:\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -g -marm -O0 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\test-project -I. -ID:\qt-project\qt5\build-android\qtbase\include -ID:\qt-project\qt5\build-android\qtbase\include\QtQuick -ID:\qt-project\qt5\build-android\qtbase\include\QtGui -ID:\qt-project\qt5\build-android\qtbase\include\QtQmlModels -ID:\qt-project\qt5\build-android\qtbase\include\QtQml -ID:\qt-project\qt5\build-android\qtbase\include\QtNetwork -ID:\qt-project\qt5\build-android\qtbase\include\QtCore -Iarmeabi-v7a -ID:\qt-project\qt5\qtbase\mkspecs\android-clang -o armeabi-v7a\qrc_qml.obj armeabi-v7a\qrc_qml.cpp E:\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fno-limit-debug-info -Wl,-soname,libtest-project_armeabi-v7a.so -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libtest-project_armeabi-v7a.so armeabi-v7a\main.obj armeabi-v7a\qrc_qml.obj D:/qt-project/qt5/build-android/qtbase/lib/libQt5Quick_armeabi-v7a.so D:/qt-project/qt5/build-android/qtbase/lib/libQt5Gui_armeabi-v7a.so D:/qt-project/qt5/build-android/qtbase/lib/libQt5QmlModels_armeabi-v7a.so D:/qt-project/qt5/build-android/qtbase/lib/libQt5Qml_armeabi-v7a.so D:/qt-project/qt5/build-android/qtbase/lib/libQt5Network_armeabi-v7a.so D:/qt-project/qt5/build-android/qtbase/lib/libQt5Core_armeabi-v7a.so -lGLESv2 -llog -lz -lm -ldl -lc 16:07:11: The process "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally. 16:07:11: Removing directory E:\development\test-apps\build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug\android-build/libs 16:07:11: Starting: "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=E:\development\test-apps\build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug\android-build" install D:\qt-project\qt5\build-android\qtbase\bin\qmake.exe -install qinstall -exe libtest-project_armeabi-v7a.so E:\development\test-apps\build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug\android-build\libs\armeabi-v7a\libtest-project_armeabi-v7a.so 16:07:11: The process "E:\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally. 16:07:11: Starting: "D:\qt-project\qt5\build-android\qtbase\bin\androiddeployqt.exe" --input E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/android-test-project-deployment-settings.json --output E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/android-build --android-platform android-30 --jdk "C:/Program Files/AdoptOpenJDK/jdk-11.0.8.10-hotspot/" --gradle Generating Android Package Input file: E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/android-test-project-deployment-settings.json Output directory: E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/android-build/ Application binary: test-project Android build platform: android-30 Install to device: No Warning: QML import could not be resolved in any of the import paths: QtGraphicalEffects Warning: QML import could not be resolved in any of the import paths: QtGraphicalEffects Cannot find E:/development/test-apps/build-test-project-Android_Custom_android_Qt_5_15_2_build_android_Clang_Multi_Abi-Debug/android-build//res/values/libs.xml in prepared packaged. This file is required. 16:07:16: The process "D:\qt-project\qt5\build-android\qtbase\bin\androiddeployqt.exe" exited with code 12. Error while building/deploying project test-project (kit: Android Custom android Qt 5.15.2 (build-android) Clang Multi-Abi) When executing step "Build Android APK" 16:07:16: Elapsed time: 00:06.
Attachments
For Gerrit Dashboard: QTBUG-87627 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
318818,7 | Android: fix android java and templates targets with -developer-build | dev | qt/qtbase | Status: MERGED | +2 | 0 |
321035,2 | Android: fix android java and templates targets with -developer-build | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |