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

CMake Multi-ABI builds not copying sub-ABIs libraries

    XMLWordPrintable

Details

    • Android
    • 7a6b3e1a9 (dev), 09e4baf5e (6.9), 4a97fd2f8 (6.8)

    Description

      When doing a multi-ABI buid (for example for creating an app bundle AAB), the sub-project ABI libraries are not being copied over to the build dir, below is an error log:

      [21/22 0.8/sec] Linking CXX shared module libDRC_arm64-v8a.so
      [22/22 0.9/sec] Copying DRC binary to apk folder
      19:07:05: The process "/Users/nsantos/Qt/Tools/CMake/CMake.app/Contents/bin/cmake" exited normally.
      19:07:05: Starting: "/Users/nsantos/Qt/6.8.2/macos/bin/androiddeployqt" --input /tmp/drc/android/build/Android_Qt_6_8_2_Clang_arm64_v8a-Release/android-DRC-deployment-settings.json --output /tmp/drc/android/build/Android_Qt_6_8_2_Clang_arm64_v8a-Release/android-build-DRC --android-platform android-34 --jdk /Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home --gradle --aab --jarsigner --release --sign '******' --storepass '******'
      Cannot find application binary in build dir /private/tmp/drc/android/build/Android_Qt_6_8_2_Clang_arm64_v8a-Release/android-build-DRC//libs/armeabi-v7a/libDRC_armeabi-v7a.so.
      Using package signing store password found from the environment variable.
      Using package signing key password found from the environment variable.
      19:07:05: The process "/Users/nsantos/Qt/6.8.2/macos/bin/androiddeployqt" exited with code 2.
      19:07:05: Error while building/deploying project DRC (kit: Android Qt 6.8.2 Clang arm64-v8a)
      19:07:05: When executing step "Build Android APK"
      19:07:05: Elapsed time: 00:29. 

      Manually building the targets qt_internal_android_<abi>_<target_name>_copy_apk_dependencies for each ABI fixes the issue, but this needs to be done by default.

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              assam Assam Boudjelthia
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes