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

Targets not yet defined: zstd::libzstd_static

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.7, 6.7.2, 6.8.0 FF
    • 6.6.0, 6.8.0, dev
    • Build System: CMake
    • None
    • Ubuntu 24.04
    • Linux/X11
    • f57d15654 (dev), 7d9d1220f (dev), 604bb3bf2 (dev), 3b53aad0b (6.7), 04a4b94e6 (6.7), 565cd685a (6.7), 5c4e32b04 (tqtc/lts-6.5), c07865c6c (tqtc/lts-6.5), 8789961cd (tqtc/lts-6.5)

    Description

      I try to build dev branch and 6.6.0 branch on Ubuntu 23.10. I get error

      -- Configuring submodule 'qtserialport'
      -- Found the following ICU libraries:
      --   i18n (required): /usr/lib/x86_64-linux-gnu/libicui18n.so
      --   uc (required): /usr/lib/x86_64-linux-gnu/libicuuc.so
      --   data (required): /usr/lib/x86_64-linux-gnu/libicudata.so
      CMake Error at /usr/lib/x86_64-linux-gnu/cmake/zstd/zstdTargets.cmake:42 (message):
        Some (but not all) targets in this export set were already defined.
      
        Targets Defined: zstd::libzstd_shared
      
        Targets not yet defined: zstd::libzstd_static
      

      I try do

      sudo apt install libzstd-dev
      

      and remove Qt, configure again with the same error.

      After I read the same thread. In file toolchain_host.cmake I add

      set(FEATURE_zstd OFF)
      

      And now I can configure and build...

      Why I can't build with FEATURE_zstd ON?

      All my steps in attachment.

      Attachments

        1. cmake_trace_653_1.zip
          10.08 MB
        2. cmake_trace_653.zip
          10.08 MB
        3. cmake_trace_QTBUG-119469_Ubuntu24.txt
          27.57 MB
        4. cmake_trace.zip
          9.89 MB
        5. QTBUG-119469_test.7z
          3.06 MB

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              dungeonlords Andrei Cherniaev
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: