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

[REG 6.4.0->6.5.0] Can not compile Qt examples with Android armv7 pre-build binaries on linux and macOS

    XMLWordPrintable

    Details

    • Platform/s:
      Android, Linux/X11, macOS
    • Commits:
      f7a34630a1 (qt/qtbase/dev) f7a34630a1 (qt/tqtc-qtbase/dev) 4060a2ee93 (qt/tqtc-qtbase/6.4.1)
    • Sprint:
      2022wk44FOQtforAndroid

      Description

      Install Qt6.5.0 Android binaries on linux or macOS, try to compile any example with android_armv7 binaries.
      Configure passes:

      /home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/bin/qt-cmake -S /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock -B /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r23b -GNinja
      

      But build fails:

      cmake --build . --target apk in /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a
      
      [6/7] Copying analogclock binary to apk folder
      [7/7] Creating APK for analogclock
      WARNING 09:07:30
      FAILED: CMakeFiles/analogclock_make_apk /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/CMakeFiles/analogclock_make_apk 
      cd /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a && /home/qt/RTA/Qt_6.5.0/6.5.0/gcc_64/bin/androiddeployqt --input /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/android-analogclock-deployment-settings.json --output /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/android-build --apk /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/android-build/analogclock.apk
      Generating Android Package
        Input file: /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/android-analogclock-deployment-settings.json
        Output directory: /home/qt/RTA/Qt_6.5.0/Examples/Qt-6.5.0/widgets/widgets/analogclock/bld_armeabi-v7a/android-build/
        Application binary: analogclock
        Android build platform: android-31
        Install to device: No
      /opt/android/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/plugins\platforms\libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      /opt/android/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/plugins\platforms\libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      /opt/android/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readobj: error: '/home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/plugins\platforms\libplugins_platforms_qtforandroid_armeabi-v7a.so': No such file or directory
      Error: qmlimportscanner not found at /home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/libexec/qmlimportscanner
      Source Qt file does not exist: /home/qt/RTA/Qt_6.5.0/6.5.0/android_armv7/jar\Qt6Android.jar.
      ninja: build stopped: subcommand failed.
      

      Works on windows.

        Attachments

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

          Activity

            People

            Assignee:
            janihe Jani Heikkinen
            Reporter:
            joaijala Johanna Äijälä
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes