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

Android shadow builds on Windows unusable with AndroidDeployQt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11
    • QPA
    • None
    • Windows 10

      Android build

      5.11 (dev)
    • Android

    Description

      When building for Android on Windows and using shadow builds the android template data is copied incorrectly.  This is because the the res folder is copied incorrectly on Windows:

      qtbase/src/android/templates/templates.pro:

      QMAKE_POST_LINK += \
      $${QMAKE_COPY} $$shell_path($$PWD/AndroidManifest.xml) $$OUT_PATH $$RETURN \
      $${QMAKE_COPY} $$shell_path($$PWD/build.gradle) $$OUT_PATH $$RETURN \
      $${QMAKE_COPY_DIR} $$shell_path($$PWD/res) $$OUT_PATH

      On windows for the last line it will generate the following in the Makefile:

      xcopy /s /q /y /i Q:\Code\qt5-dev\qtbase\src\android\templates\res Q:\Code\qt5-5.11-android\qtbase\src\android\templates

      And that will copy the contents of qtbase\src\android\templates\res instead of the res folder itself.

      And Since AndroidDeployQt depends on the this directory structure being correct, it will then be impossible to package APK files for Android deployment.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rampe Rami Potinkara
            janichol Andy Nichols
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes