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

QmlTools not automatically found

    XMLWordPrintable

Details

    • 035fbd068 (dev), b942110a4 (6.9), fefaf8227 (6.8), 103296a70 (tqtc/lts-6.5), f881e06dd (dev), df5c9259a (6.9), 500983b29 (6.8), 1bbaf2ddf (tqtc/lts-6.5)

    Description

      Our CI mounts Qt 6 because the current versions are not available via the package management and the MaintanceTool is difficult to access via the CI. For this reason, we currently integrate Qt in this way:

      • Docker call with -v /jenkins/dependencies/Qt:/Qt
      • Environment variable: Qt6_DIR=/Qt/6.8.1/gcc_64

      This results in:

      CMake Warning at /usr/share/cmake-3.30/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
        By not providing "FindQt6QmlTools.cmake" in CMAKE_MODULE_PATH this project
        has asked CMake to find a package configuration file provided by
        "Qt6QmlTools", but CMake did not find one.
      
        Could not find a package configuration file provided by "Qt6QmlTools"
        (requested version 6.8.1) with any of the following names:
      
          Qt6QmlToolsConfig.cmake
          qt6qmltools-config.cmake
      
        Add the installation prefix of "Qt6QmlTools" to CMAKE_PREFIX_PATH or set
        "Qt6QmlTools_DIR" to a directory containing one of the above files.  If
        "Qt6QmlTools" provides a separate development package or SDK, be sure it
        has been installed.
      Call Stack (most recent call first):
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6QuickTools/Qt6QuickToolsDependencies.cmake:12 (find_dependency)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6QuickTools/Qt6QuickToolsConfig.cmake:36 (include)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:97 (find_package)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:38 (_qt_internal_find_tool_dependencies)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
        CMakeLists.txt:26 (find_package)
      
      
      CMake Warning at /Qt/6.8.1/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:97 (find_package):
        Found package configuration file:
      
          /Qt/6.8.1/gcc_64/lib/cmake/Qt6QuickTools/Qt6QuickToolsConfig.cmake
      
        but it set Qt6QuickTools_FOUND to FALSE so package "Qt6QuickTools" is
        considered to be NOT FOUND.  Reason given by package:
      
        Qt6QuickTools could not be found because dependency Qt6QmlTools could not
        be found.
      
      Call Stack (most recent call first):
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:38 (_qt_internal_find_tool_dependencies)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:43 (include)
        /Qt/6.8.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package)
        CMakeLists.txt:26 (find_package)
      
      
      CMake Warning at /Qt/6.8.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package):
        Found package configuration file:
      
          /Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake
      
        but it set Qt6Quick_FOUND to FALSE so package "Qt6Quick" is considered to
        be NOT FOUND.  Reason given by package:
      
        Qt6Quick could not be found because dependency Qt6QuickTools could not be
        found.
      
        Configuring with --debug-find-pkg=Qt6QuickTools 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.
      
      Call Stack (most recent call first):
        CMakeLists.txt:26 (find_package)
      
      
      CMake Error at CMakeLists.txt:26 (find_package):
        Found package configuration file:
      
          /Qt/6.8.1/gcc_64/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 "Quick".
      
        Expected Config file at
        "/Qt/6.8.1/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake" exists
      
      
      
        Configuring with --debug-find-pkg=Qt6Quick 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.
      

      CMake trace attached, where cmake call was extended by: -DCMAKE_FIND_DEBUG_MODE=ON -DQT_DEBUG_FIND_PACKAGE=ON --trace-expand

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            EliteScience Heiko Thiel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: