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

Failure to build Qt6,difficult to identify the cause

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0.0 Alpha
    • Build System: CMake
    • None
    • Linux/X11

    Description

      in qt 5, the log explicitly mentionned the failing features/libraries in case of error, but with qt6's cmake, I don't know how to identify exactly the cause of the error

      Qt is now configured for building. Just run 'cmake --build . --parallel'Once everything is built, you must run 'cmake --install .'
       Qt will be installed into '/home/eric/.conan/data/qt/6.0.0-alpha/bincrafters/testing/package/77b282c64d736324b5f76544d48b516ec2ec65e6'To configure and build other Qt modules, you can use the following convenience script:
       /bin/qt-cmake-privateIf reconfiguration fails for some reason, try to remove 'CMakeCache.txt' from the build directory-- Configuring incomplete, errors occurred! 

      When scrolling the log I can see these 2 cmake errors:

      CMake Error at qtbase/cmake/QtPrlHelpers.cmake:133 (set_property):
       Attempt to promote imported target "OpenSSL::OpenSSL" to global scope (by
       setting IMPORTED_GLOBAL) which is not built in this directory.
       Call Stack (most recent call first):
       qtbase/cmake/QtFindPackageHelpers.cmake:12 (qt_internal_walk_libs)
       qtbase/cmake/QtFindPackageHelpers.cmake:154 (qt_find_package_promote_targets_to_global_scope)
       qtbase/src/plugins/sqldrivers/configure.cmake:14 (qt_find_package)
       qtbase/src/plugins/sqldrivers/CMakeLists.txt:33 (include) 
      – Found WrapSystemFreetype: TRUE (found version "2.10.2")
       – Using system Freetype.
       – Found WrapFreetype: TRUE
       CMake Error at qtbase/cmake/QtPrlHelpers.cmake:133 (set_property):
       Attempt to promote imported target "Freetype::Freetype" to global scope (by
       setting IMPORTED_GLOBAL) which is not built in this directory.
       Call Stack (most recent call first):
       qtbase/cmake/QtPrlHelpers.cmake:104 (qt_internal_walk_libs)
       qtbase/cmake/QtFindPackageHelpers.cmake:12 (qt_internal_walk_libs)
       qtbase/cmake/QtFindPackageHelpers.cmake:154 (qt_find_package_promote_targets_to_global_scope)
       qtbase/src/gui/CMakeLists.txt:13 (qt_find_package) 

      But I'm not sure if these are the blocking errors, because CMakeError.log does not mention freetype or openssl at all. CMakeOutput.log does not mention freetype, and mentions openssl for a test which succeeded. 

      Attachments

        1. CMakeError.log
          16 kB
        2. CMakeOutput.log
          65 kB

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes