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

Targets not yet defined: zstd::libzstd_static

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0, 6.8.0, dev
    • Build System: CMake
    • None
    • 6.5.0-13-generic #13-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 3 12:16:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
    • Linux/X11

    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

        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
              dungeonlords Andrei Cherniaev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes