Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2
-
None
-
-
e6892f38a084e514bf9c501f3045b297f6260714 (qt/qtbase/dev) 45f596c302d3d6c2268643dc50bb51a62963b24b (qt/qtbase/6.2) c8645045d03fd6ece0174f5d72c3b14f9ec2c550 (qt/tqtc-qtbase/5.15)
Description
When qml files are added without explicit qrc file via RESOURCES variable, e.g.:
RESOURCES += $$files(qml/*)
qmake generates invalid path to qmake_qmake_immediate.qrc file in android-*-deployment-settings.json ("qrcFiles" entry contains unnecessary architecture-related part e.g. "x86/"), resulting in "file not found" error reported by androiddeployqt:
09:26:56: Starting: "/home/michalcieslak/workspace/qt6-build-install/bin/androiddeployqt" --input /home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/android-QmlResourcesTest-deployment-settings.json --output /home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/android-build --android-platform android-30 --jdk /home/michalcieslak/workspace/jdk-11.0.11+9 --gradle Generating Android Package Input file: /home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/android-QmlResourcesTest-deployment-settings.json Output directory: /home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/android-build/ Application binary: QmlResourcesTest Android build platform: android-30 Install to device: No qmlimportscanner: No such file or directory: "/home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/x86/qmake_qmake_immediate.qrc" Invalid json output from qmlimportscanner. 09:26:56: The process "/home/michalcieslak/workspace/qt6-build-install/bin/androiddeployqt" exited with code 4. Error while building/deploying project QmlResourcesTest (kit: Qt-6-dev-android 6.2.0 Clang x86) When executing step "Build Android APK"
The actual path of the generated file is:
"/home/michalcieslak/workspace/QmlResourcesTest/build-QmlResourcesTest-Qt_6_dev_android_6_2_0_Clang_x86-Debug/qmake_qmake_immediate.qrc"
Attachments
Issue Links
- is duplicated by
-
QTBUG-95235 Building Quick Controls 2 examples with Qt 6.1.1 for Android fails
- Closed
For Gerrit Dashboard: QTBUG-95202 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
368468,4 | Android: Fix path of qmake_qmake_immediate.qrc in single_abi with qmake | dev | qt/qtbase | Status: MERGED | +2 | 0 |
371871,2 | Android: Fix path of qmake_qmake_immediate.qrc in single_abi with qmake | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
371872,1 | Android: Fix path of qmake_qmake_immediate.qrc in single_abi with qmake | 6.2.0 | qt/qtbase | Status: ABANDONED | +2 | 0 |
371874,3 | Android: Fix path of qmake_qmake_immediate.qrc in single_abi with qmake | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
418145,3 | Add the missing RCC_DIR to '.qrc' paths when generating deployment settings | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |