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

qface-tutorial examples not configuring/compiling on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.4.3, 6.5.0 RC
    • Qt Interface Framework

    Description

      Install Qt 6.5.0 Android binaries, include all additional modules to installation.

      Launch QtCreator and open one of the projects:

      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch1-basics
      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch2-enums-structs
      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch3-simulation-backend
      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch4-simulation-behavior

      and compile examples. All fail on similar failure:

      [1/1 140.2/sec] Copying ic_ch1 binary to apk folder
      08:34:57: The process "/home/johanna/RTA/Qt_6.5.0/Tools/CMake/bin/cmake" exited normally.
      08:34:57: Starting: "/home/johanna/RTA/Qt_6.5.0/6.5.0/gcc_64/bin/androiddeployqt" --input /home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch1-basics-Android_Qt_6_5_0_Clang_arm64_v8a-Debug/instrument-cluster/android-ic_ch1-deployment-settings.json --output /home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch1-basics-Android_Qt_6_5_0_Clang_arm64_v8a-Debug/instrument-cluster/android-build --android-platform android-31 --jdk /usr/lib/jvm/java-11-openjdk-amd64 --gradle
      No target architecture defined in json file.
      08:34:57: The process "/home/johanna/RTA/Qt_6.5.0/6.5.0/gcc_64/bin/androiddeployqt" exited with code 2.
      Error while building/deploying project qface-ch1 (kit: Android Qt 6.5.0 Clang arm64-v8a)
      The kit Android Qt 6.5.0 Clang arm64-v8a has configuration issues which might be the root cause for this problem.
      When executing step "Build Android APK" 

      Only the Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch5-ipc can be compiled without errors.

      Examples
      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch6-own-backend
      Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch7-own-template

      fail already on configure phase:

      Running /home/johanna/RTA/Qt_6.5.0/Tools/CMake/bin/cmake -S /home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/ch6-own-backend -B /home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch6-own-backend-Android_Qt_6_5_0_Clang_arm64_v8a-Debug in /home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch6-own-backend-Android_Qt_6_5_0_Clang_arm64_v8a-Debug.
      -- Configuring 'ic_chapter6' for the following Android ABIs: arm64-v8a (default)
      -- Found android platform plugin at: /home/johanna/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/./plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so
      -- Could NOT find Qt6DBus (missing: Qt6DBus_DIR)
      CMake Error at backend_dbus/CMakeLists.txt:11 (find_package):
        Found package configuration file:    /home/johanna/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6/Qt6Config.cmake  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
        FOUND.  Reason given by package:  Failed to find required Qt component "DBus".  Expected Config file at
        "/home/johanna/RTA/Qt_6.5.0/6.5.0/android_arm64_v8a/lib/cmake/Qt6DBus/Qt6DBusConfig.cmake"
        does NOT exist    Configuring with --debug-find-pkg=Qt6DBus might reveal details why the
        package was not found.  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
        of the path variables that find_package uses to try and find the package.-- Configuring incomplete, errors occurred!
      See also "/home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch6-own-backend-Android_Qt_6_5_0_Clang_arm64_v8a-Debug/CMakeFiles/CMakeOutput.log".
      See also "/home/johanna/RTA/Qt_6.5.0/Examples/Qt-6.5.0/interfaceframework/qface-tutorial/build-ch6-own-backend-Android_Qt_6_5_0_Clang_arm64_v8a-Debug/CMakeFiles/CMakeError.log".
      CMake process exited with exit code 1.Elapsed time: 00:00. 

      I'm not sure though, does Android support DBus.

      Attachments

        Issue Links

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

          Activity

            People

              gagi Dominik Holland
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes