Core5Compat not recognized by CMake
-
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 dependencyadd_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?
-
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 dependencyadd_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?
@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-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
@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
-
@ChrisW67 any suggestion?
-
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?
@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