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

Cannot configure static build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 6.4
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Environment:
      Manjaro Linux
      qtbase 7ad8a2e8fe967a46127d3ba1f0ec5901921819fd
      qtsvg 27fb1fb16ca581f1782da63593653bb5dd60440c

      Description

      1. Clone qt5.git and initialize submodules qtbase and qtsvg.
        Without qtsvg, configuring seems to work.
      2. Try configuring this:
        /tmp/qt-bisect/qt5/configure -opensource -confirm-license -prefix $PWD/qtbase -static
        

        This will fail:

        CMake Error at /usr/lib64/cmake/zstd/zstdTargets.cmake:37 (message):
          Some (but not all) targets in this export set were already defined.
        
          Targets Defined: zstd::libzstd_static
        
          Targets not yet defined: zstd::libzstd_shared
        
        Call Stack (most recent call first):
          /usr/lib64/cmake/zstd/zstdConfig.cmake:1 (include)
          qtbase/cmake/FindWrapZSTD.cmake:21 (find_package)
          /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
          /tmp/qt-bisect/build-qt/qtbase/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:48 (find_dependency)
          /tmp/qt-bisect/build-qt/qtbase/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:40 (include)
          /tmp/qt-bisect/build-qt/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (find_package)
          qtsvg/CMakeLists.txt:13 (find_package)
        
        
        CMake Warning at /tmp/qt-bisect/build-qt/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (find_package):
          Found package configuration file:
        
            /tmp/qt-bisect/build-qt/qtbase/lib/cmake/Qt6Core/Qt6CoreConfig.cmake
        
          but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
          NOT FOUND.
        Call Stack (most recent call first):
          qtsvg/CMakeLists.txt:13 (find_package)
        

        Full log attached.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes