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

[FTBFS] Qt6CoreToolsTargets.cmake not found with -DQT_FORCE_FIND_TOOLS=ON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.3.0 Alpha
    • 6.3
    • Build System: CMake
    • None
    • c82bca9efe79a4913499d08d2bc814cb32cfcef9 (qt/qtbase/dev) e9bfef22eec67cae2f8d929912bafba55e8d7d0e (qt/qtbase/6.2)

    Description

      First, build a regular Qt (e.g., release build).

      $ ls -1 lib/cmake/Qt6CoreTools 
      Qt6CoreToolsAdditionalTargetInfo.cmake
      Qt6CoreToolsConfig.cmake
      Qt6CoreToolsConfigVersion.cmake
      Qt6CoreToolsDependencies.cmake
      Qt6CoreToolsVersionlessTargets.cmake
      

      Then attempt to build another Qt (e.g., debug build) using the tools from the previous build. I did:

      cmake $srcdir -DCMAKE_INSTALL_PREFIX=$PWD -DCMAKE_PREFIX_PATH=$HOME/obj/qt/qt6-release/qtbase -DQT_FORCE_FIND_TOOLS=ON [other options]
      

      Which resulted in:

      -- Searching for tool 'Qt6::moc' in package Qt6CoreTools.
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:37 (include):
        include could not find requested file:
      
          /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsTargets.cmake
      Call Stack (most recent call first):
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:5 (get_target_property):
        get_target_property() called with non-existent target "Qt6::moc".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:6 (get_target_property):
        get_target_property() called with non-existent target "Qt6::moc".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:9 (set_property):
        set_property could not find TARGET Qt6::moc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:16 (set_property):
        set_property could not find TARGET Qt6::moc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:26 (get_target_property):
        get_target_property() called with non-existent target "Qt6::rcc".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:27 (get_target_property):
        get_target_property() called with non-existent target "Qt6::rcc".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:30 (set_property):
        set_property could not find TARGET Qt6::rcc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:37 (set_property):
        set_property could not find TARGET Qt6::rcc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:47 (get_target_property):
        get_target_property() called with non-existent target "Qt6::tracegen".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:48 (get_target_property):
        get_target_property() called with non-existent target "Qt6::tracegen".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:51 (set_property):
        set_property could not find TARGET Qt6::tracegen.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:58 (set_property):
        set_property could not find TARGET Qt6::tracegen.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:68 (get_target_property):
        get_target_property() called with non-existent target
        "Qt6::cmake_automoc_parser".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:69 (get_target_property):
        get_target_property() called with non-existent target
        "Qt6::cmake_automoc_parser".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:72 (set_property):
        set_property could not find TARGET Qt6::cmake_automoc_parser.  Perhaps it
        has not yet been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:79 (set_property):
        set_property could not find TARGET Qt6::cmake_automoc_parser.  Perhaps it
        has not yet been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:89 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qlalr".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:90 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qlalr".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:93 (set_property):
        set_property could not find TARGET Qt6::qlalr.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:100 (set_property):
        set_property could not find TARGET Qt6::qlalr.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:110 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qtpaths".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:111 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qtpaths".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:114 (set_property):
        set_property could not find TARGET Qt6::qtpaths.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:121 (set_property):
        set_property could not find TARGET Qt6::qtpaths.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:131 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qmake".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:132 (get_target_property):
        get_target_property() called with non-existent target "Qt6::qmake".
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:135 (set_property):
        set_property could not find TARGET Qt6::qmake.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake:142 (set_property):
        set_property could not find TARGET Qt6::qmake.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:38 (include)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::moc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:50 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::rcc.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:54 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::tracegen.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:58 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::cmake_automoc_parser.  Perhaps it
        has not yet been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:62 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::qlalr.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:66 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::qtpaths.  Perhaps it has not yet
        been created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:70 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtPublicTargetHelpers.cmake:256 (get_property):
        get_property could not find TARGET Qt6::qmake.  Perhaps it has not yet been
        created.
      Call Stack (most recent call first):
        /home/tjmaciei/obj/qt/qt6-release/qtbase/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:74 (__qt_internal_promote_target_to_global)
        cmake/QtToolHelpers.cmake:92 (find_package)
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      CMake Error at cmake/QtToolHelpers.cmake:118 (message):
        The tool "Qt6::moc" was not found in the Qt6CoreTools package.  Package
        found: 1
      Call Stack (most recent call first):
        src/tools/moc/CMakeLists.txt:8 (qt_internal_add_tool)
      
      
      -- Configuring incomplete, errors occurred!
      

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes