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

Wearable example fails to build/deply on Android

    XMLWordPrintable

Details

    • Android

    Description

      I'm trying to structure the LightningViewer example to use qml modules, and I am having problems deploying it on Android.

      These are the final couple of messages I get

      [179/182 23.3/sec] Building CXX object CMakeFiles/lightningviewerexample.dir/controller.cpp.o
      [180/182 22.4/sec] Building CXX object CMakeFiles/lightningviewerexample.dir/lightningviewerexample_qmltyperegistrations.cpp.o
      [181/182 22.4/sec] Linking CXX shared module liblightningviewerexample_x86_64.so
      [182/182 22.4/sec] Copying lightningviewerexample binary to apk folder
      13:33:09: The process "/usr/bin/cmake" exited normally.
      13:33:09: Product type is not an application, not building an APK.
      13:33:09: Starting: "/home/oliver/qt/dev-mod-build/qtbase/bin/androiddeployqt --verbose --output /home/oliver/qt/dev/qtdoc/examples/demos/build-lightningviewer-WTFFFF_ANDROID_x86-Debug/lv_style/android-build --no-build --input /home/oliver/qt/dev/qtdoc/examples/demos/build-lightningviewer-WTFFFF_ANDROID_x86-Debug/lv_style/android-lightningviewer_style-deployment-settings.json --gradle --reinstall --device emulator-5554"
      13:33:09: The process "/home/oliver/qt/dev-mod-build/qtbase/bin/androiddeployqt" exited with code 255.
      13:33:09: Installing the app failed with an unknown error.
      13:33:09: Pulling files necessary for debugging.
      13:33:09: Package deploy: Running command "/home/oliver/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process64 /home/oliver/qt/dev/qtdoc/examples/demos/build-lightningviewer-WTFFFF_ANDROID_x86-Debug/lv_style/android-app-process/app_process".
      13:33:09: Package deploy: Running command "/home/oliver/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker64 /home/oliver/qt/dev/qtdoc/examples/demos/build-lightningviewer-WTFFFF_ANDROID_x86-Debug/lv_style/android-app-process/linker64".
      13:33:09: Package deploy: Running command "/home/oliver/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/lib64/libc.so /home/oliver/qt/dev/qtdoc/examples/demos/build-lightningviewer-WTFFFF_ANDROID_x86-Debug/lv_style/android-app-process/libc.so".
      Error while building/deploying project LightningViewer (kit: WTFFFF ANDROID x86)
      When executing step "Deploy to Android device" 

      (I'll attach a patch file that can be applied to qtdoc, in case someone's interested)

      When looking at other examples, I noticed that the wearable example in

      qtdeclarative/examples/quickcontrols/wearable runs into the same problems when I try to build it for Android.

       

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            hurlevent Oliver Eftevaag
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes