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

Configure fails in qttools if PrintSupport is disabled

    XMLWordPrintable

Details

    • 8dba0e48a (dev), 99d6f1777 (6.7), 416358086 (tqtc/lts-6.5), 4be1823e4 (dev), aa9f8db49 (6.8), 8bb2a0c02 (6.7)

    Description

      In Qt 6.6.3, 6.7.0, or current dev branch, configuring via the configure script or directly with CMake with Print Support disabled causes a configure error in qttools/linguist.

      With qtbase and qttools submodules initialized, call the top-level super-repo's configure with `-no-feature-printsupport` or call CMake with `-DFEATURE_printsupport:BOOL=OFF`. The configuration will emit the following error:

      -- Configuring done (37.3s)
      CMake Error at qtbase/cmake/QtTargetHelpers.cmake:171 (target_link_libraries):
        Target "linguist" links to:
      
          Qt::PrintSupport
      
        but the target was not found.  Possible reasons include:
      
          * There is a typo in the target name.
          * A find_package call is missing for an IMPORTED target.
          * An ALIAS target is missing.
      
      -- Generating done (1.6s)
      Call Stack (most recent call first):
        qtbase/cmake/QtExecutableHelpers.cmake:120 (qt_internal_extend_target)
        qtbase/cmake/QtAppHelpers.cmake:46 (qt_internal_add_executable)
        qttools/src/linguist/linguist/CMakeLists.txt:8 (qt_internal_add_app)
      
      
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      CMake Error at C:/dev/Qt/qt6/qtbase/cmake/QtProcessConfigureArgs.cmake:1040 (message):
        CMake exited with code 1.
      

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              rytoex Ryan Foster
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: