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

Created new Qt project shows Qt policy warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • QtTAS 2.0
    • QtTAS: General
    • None
    • Android
    • d735de414 (dev), 7a6ae28f1 (2.0), 7f73c32d8 (dev), 9d5c4754e (2.0)

    Description

      Build Qt Project (Build -> Build Qt Project)

                                                                                  
      Expected Result
      Project builds without errors, Qt build output in shown in the Qt output window
       
      Actual result
      "-- Build files have been written to: /home/johndoe/dev/tmp/app/Kuutti/build
      CMake Warning (dev) at /home/johndoe/Qt/6.8.0/android_x86_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3339 (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):
        /home/johndoe/Qt/6.8.0/android_x86_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:627 (__qt_internal_setup_policy)
      /home/johndoe/Qt/6.8.0/android_x86_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1028 (qt6_add_qml_module)
        CMakeLists.txt:18 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it."

      Android Studio Jellyfish | 2023.3.1 Patch 2 June 10, 2024 on Linux Ubuntu 22.04. Qt 6.8 Beta 1 with Android 14 x86_64

      Attachments

        Issue Links

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

          Activity

            People

              nikunj Nikunj Arora
              rampe Rami Potinkara
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes