Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-27

The same entries are shown in the logs multiple times and inconsistent numeration

    XMLWordPrintable

Details

    • All

    Description

      macOS 14.4

       

      Steps:

      1. Build the Qt project with AS.

       

      Issue:

      The first part of the Qt Build logs is looking fine: 

      [1/18] Copying Main.qml to /Users/lukaszkosiorowski/testqt6/build/testqt6/Main.qml
      [2/18] Automatic MOC and UIC for target testqt6
      [3/18] Running AUTOMOC file extraction for target testqt6
      [4/18] Running rcc for resource testqt6_raw_qml_0
      [5/18] Running rcc for resource qmake_testqt6
      [6/18] Generating .rcc/qmlcache/testqt6_qmlcache_loader.cpp
      [7/18] Running moc --collect-json for target testqt6
      [8/18] Automatic QML type registration for target testqt6
      [9/18] Generating .rcc/qmlcache/testqt6_Main_qml.cpp
      [10/18] Building CXX object CMakeFiles/testqt6.dir/testqt6_autogen/mocs_compilation.cpp.o
      [11/18] Building CXX object CMakeFiles/testqt6.dir/build/.rcc/qrc_qmake_testqt6.cpp.o
      [12/18] Building CXX object CMakeFiles/testqt6.dir/build/.rcc/qrc_testqt6_raw_qml_0.cpp.o
      [13/18] Building CXX object CMakeFiles/testqt6.dir/testqt6_qmltyperegistrations.cpp.o
      [14/18] Building CXX object CMakeFiles/testqt6.dir/main.cpp.o
      [15/18] Building CXX object CMakeFiles/testqt6.dir/build/.rcc/qmlcache/testqt6_Main_qml.cpp.o
      [16/18] Building CXX object CMakeFiles/testqt6.dir/build/.rcc/qmlcache/testqt6_qmlcache_loader.cpp.o
      [17/18] Linking CXX shared module libtestqt6_x86_64.so
      [18/18] Copying testqt6 binary to apk folder
      Generating Android Package
        Input file: /Users/lukaszkosiorowski/testqt6/build/android-testqt6-deployment-settings.json
        Output directory: /Users/lukaszkosiorowski/testqt6/build/android-build/
        Application binary: testqt6
        Android build platform: android-34
        Install to device: No 

      but after that, I see 3 times the same entries starting from the warning message:

      Warning: QML import could not be resolved in any of the import paths: QML
      -- Android toolchain file within NDK detected: /Users/lukaszkosiorowski/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
      -- Configuring 'testqt6' for the following Android ABIs: x86_64 (default)
      -- Found android platform plugin at: /Users/lukaszkosiorowski/Qt/6.7.0/android_x86_64/./plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so
      -- Configuring done (0.7s)
      -- Generating done (0.0s)
      -- Build files have been written to: /Users/lukaszkosiorowski/testqt6/build
      CMake Warning (dev) at /Users/lukaszkosiorowski/Qt/6.7.0/android_x86_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3126 (message):
        Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix
        for QML modules.  Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0001.html
        for policy details.  Use the qt_policy command to set the policy and
        suppress this warning.Call Stack (most recent call first):
        /Users/lukaszkosiorowski/Qt/6.7.0/android_x86_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:468 (__qt_internal_setup_policy)
        /Users/lukaszkosiorowski/Qt/6.7.0/android_x86_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:776 (qt6_add_qml_module)
        CMakeLists.txt:18 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      [1/10] Automatic MOC and UIC for target testqt6
      [2/9] Running AUTOMOC file extraction for target testqt6
      [3/3] Copying testqt6 binary to apk folder
      Generating Android Package
        Input file: /Users/lukaszkosiorowski/testqt6/build/android-testqt6-deployment-settings.json
        Output directory: /Users/lukaszkosiorowski/testqt6/build/android-build/
        Application binary: testqt6
        Android build platform: android-34
        Install to device: No
       

      some steps have also inconsistent numeration:

      [1/10] Automatic MOC and UIC for target testqt6 
      [2/9] Running AUTOMOC file extraction for target testqt6 
      [3/3] Copying testqt6 binary to apk folder 

      Attaching full logg 

      Attachments

        Issue Links

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

          Activity

            People

              rampe Rami Potinkara
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes