Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Core5Compat not recognized by CMake
Forum Updated to NodeBB v4.3 + New Features

Core5Compat not recognized by CMake

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 774 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • franco.amatoF Offline
    franco.amatoF Offline
    franco.amato
    wrote on last edited by
    #1

    I have a project that includes the QuaZip dependency.
    During the compilation of my project, I also compile the QuaZip source code as it is set as a dependency

    add_subdirectory(dep/quazip)
    

    In the QuaZip CMakeLists.txt file, there is this code:

    find_package(Qt6 REQUIRED COMPONENTS Core Core5Compat
                             OPTIONAL_COMPONENTS Network Test)
    

    I installed the Qt 5 Compatibility module using the Qt maintenance tool but even so it's not detected by CMake.

    Is there a way to solve this issue?

    C 1 Reply Last reply
    0
    • franco.amatoF franco.amato

      I have a project that includes the QuaZip dependency.
      During the compilation of my project, I also compile the QuaZip source code as it is set as a dependency

      add_subdirectory(dep/quazip)
      

      In the QuaZip CMakeLists.txt file, there is this code:

      find_package(Qt6 REQUIRED COMPONENTS Core Core5Compat
                               OPTIONAL_COMPONENTS Network Test)
      

      I installed the Qt 5 Compatibility module using the Qt maintenance tool but even so it's not detected by CMake.

      Is there a way to solve this issue?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @franco-amato said in Core5Compat not recognized by CMake:

      I have a project that includes the QuaZip dependency.

      Bundles its own copy? If so, exactly what version?

      I installed the Qt 5 Compatibility module using the Qt maintenance tool

      What platform and tool set?

      but even so it's not detected by CMake.

      With exactly what error, warning, or failure message(s)?
      Do you have several Qt 6 library versions? Selected/building with the correct one?

      Is there a way to solve this issue?

      Maybe

      franco.amatoF 1 Reply Last reply
      0
      • C ChrisW67

        @franco-amato said in Core5Compat not recognized by CMake:

        I have a project that includes the QuaZip dependency.

        Bundles its own copy? If so, exactly what version?

        I installed the Qt 5 Compatibility module using the Qt maintenance tool

        What platform and tool set?

        but even so it's not detected by CMake.

        With exactly what error, warning, or failure message(s)?
        Do you have several Qt 6 library versions? Selected/building with the correct one?

        Is there a way to solve this issue?

        Maybe

        franco.amatoF Offline
        franco.amatoF Offline
        franco.amato
        wrote on last edited by
        #3

        @ChrisW67 said in Core5Compat not recognized by CMake:

        @franco-amato said in Core5Compat not recognized by CMake:

        Bundles its own copy? If so, exactly what version?

        It's the 1.4 version

        What platform and tool set?

        Windows 11, VS2019

        With exactly what error, warning, or failure message(s)?

        The Core5Compat target is mentioned as a dependency for QuaZip, but not declared.
        Call stack:
        E:/Projects/BeastBurst-Launcher/CMakeLists.txt:215 (qt_finalize_executable)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:877 (qt6_finalize_target)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:774 (_qt_internal_finalize_executable)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:651 ?(__qt_internal_collect_all_target_dependencies)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:311 (__qt_internal_walk_libs)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:228 (__qt_internal_walk_libs)
        C:/Qt/6.7.2/msvc2019_64/lib/cmake/Qt6/QtPublicWalkLibsHelpers.cmake:259 (message)

        Do you have several Qt 6 library versions? Selected/building with the correct one?

        I only have Qt 6.7.2

        Maybe

        I hope so

        1 Reply Last reply
        0
        • franco.amatoF Offline
          franco.amatoF Offline
          franco.amato
          wrote on last edited by
          #4

          @ChrisW67 any suggestion?

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            It does work in CI so it's not a problem with the code. Have you tried deleting the build directory and re-running CMake?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            franco.amatoF 1 Reply Last reply
            0
            • VRoninV VRonin

              It does work in CI so it's not a problem with the code. Have you tried deleting the build directory and re-running CMake?

              franco.amatoF Offline
              franco.amatoF Offline
              franco.amato
              wrote on last edited by
              #6

              @VRonin said in Core5Compat not recognized by CMake:

              It does work in CI so it's not a problem with the code.

              What is CI?

              Have you tried deleting the build directory and re-running CMake?

              Yes I did it many times

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved