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

fail to configure qt 6.1.1 on macos (with conan) due to ZLIB global promotion not happening

    XMLWordPrintable

Details

    • macOS
    • d2e85cede (dev), 5da0b7624 (6.8)

    Description

      When tryingto build qt 6.1.1 (using conan center recipe), configuration fails with:

      CMake Error at qtbase/cmake/QtPrlHelpers.cmake:225 (set_property):
      Attempt to promote imported target "CONAN_LIB::ZLIB_z" to global scope (by
      setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:198 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:198 (qt_internal_walk_libs)
      qtbase/cmake/QtPrlHelpers.cmake:178 (qt_internal_walk_libs)
      qtbase/cmake/QtFindPackageHelpers.cmake:12 (qt_internal_walk_libs)
      qtbase/cmake/QtFindPackageHelpers.cmake:158 (qt_find_package_promote_targets_to_global_scope)
      qtbase/src/gui/configure.cmake:33 (qt_find_package)
      qtbase/cmake/QtFeature.cmake:520 (include)
      qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)
      

      Building qt 6.1.0 with the same arguments in the same environment passes successfully. This could be caused by https://codereview.qt-project.org/c/qt/qtbase/+/344053

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes