Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95202

Auto-generated android-*-deployment-settings.json contains wrong path to immediate qrc file on Qt 6

    XMLWordPrintable

    Details

    • Platform/s:
      Android

      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

          For Gerrit Dashboard: QTBUG-95202
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              assam Assam Boudjelthia
              Reporter:
              mcieslak Michał Cieślak
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change