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

widgets/itemviews/editabletreemodel not compiling on Android

    XMLWordPrintable

Details

    • Android
    • 4d7ac7325 (dev), c27163cd7 (6.7), 04e3c9987 (6.6)
    • 2023wk50FOQtforAndroid

    Description

      Install Qt 6.7.0 Android binaries, configure example widgets/itemviews/editabletreemodel:

      /home/qt/RTA/Qt_6.7.0/6.7.0/android_x86_64/bin/qt-cmake -S /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel -B /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64 -DANDROID_SDK_ROOT=/opt/android/sdk -DANDROID_NDK_ROOT=/opt/android/android-ndk-r25b -GNinja 

      Finishes fine, build:  cmake --build . --target all in /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64 -> fails:

      [1/20] Running rcc for resource editabletreemodel
      [2/20] Automatic MOC and UIC for target editabletreemodel
      [3/20] Building CXX object CMakeFiles/editabletreemodel.dir/bld_x86_64/.rcc/qrc_editabletreemodel.cpp.o
      [4/20] Automatic MOC and UIC for target editabletreemodel_tester
      [5/20] Building CXX object CMakeFiles/editabletreemodel_tester.dir/bld_x86_64/.rcc/qrc_editabletreemodel.cpp.o
      [6/20] Building CXX object CMakeFiles/editabletreemodel_tester.dir/editabletreemodel_tester_autogen/mocs_compilation.cpp.o
      [7/20] Building CXX object CMakeFiles/editabletreemodel.dir/treemodel.cpp.o
      [8/20] Building CXX object CMakeFiles/editabletreemodel_tester.dir/treeitem.cpp.o
      [9/20] Building CXX object CMakeFiles/editabletreemodel.dir/treeitem.cpp.o
      [10/20] Building CXX object CMakeFiles/editabletreemodel_tester.dir/treemodel.cpp.o
      [11/20] Building CXX object CMakeFiles/editabletreemodel.dir/editabletreemodel_autogen/mocs_compilation.cpp.o
      [12/20] Building CXX object CMakeFiles/editabletreemodel.dir/main.cpp.o
      [13/20] Building CXX object CMakeFiles/editabletreemodel_tester.dir/test.cpp.o
      [14/20] Linking CXX shared module libeditabletreemodel_tester_x86_64.so
      [15/20] Copying editabletreemodel_tester binary to apk folder
      [16/20] Creating APK for editabletreemodel_tester
      FAILED: CMakeFiles/editabletreemodel_tester_make_apk /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/CMakeFiles/editabletreemodel_tester_make_apk 
      cd /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64 && /home/qt/RTA/Qt_6.7.0/6.7.0/gcc_64/bin/androiddeployqt --input /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/android-editabletreemodel_tester-deployment-settings.json --output /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/android-build --apk /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/android-build/editabletreemodel_tester.apk ""
      Generating Android Package
        Input file: /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/android-editabletreemodel_tester-deployment-settings.json
        Output directory: /home/qt/RTA/Qt_6.7.0/Examples/Qt-6.7.0/widgets/itemviews/editabletreemodel/bld_x86_64/android-build/
        Application binary: editabletreemodel_tester
        Android build platform: android-34
        Install to device: No
      Skipping /home/qt/RTA/Qt_6.7.0/6.7.0/android_x86_64/plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so due to unmet dependencies: lib/libQt6Gui_x86_64.so
      Skipping plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so due to unmet dependencies: lib/libQt6Gui_x86_64.so
      Skipping createRCC
      No platform plugin (libplugins_platforms_qtforandroid.so) included in the deployment. Make sure the app links to Qt Gui library.
      [17/20] Building CXX object CMakeFiles/editabletreemodel.dir/mainwindow.cpp.o
      ninja: build stopped: subcommand failed 
        

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes