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

    • Android
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: