Cannot use Core5Compat
Unsolved
General and Desktop
-
wrote on 22 Oct 2023, 19:43 last edited by
Whenever I add Core5Compat to my find_package in cmake I get an error.
I tried:find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Core5Compat)
and
find_package(Qt6 REQUIRED COMPONENTS Core5Compat Gui Qml Quick)
but both result in
Found package configuration file QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Core5Compat". Expected Config file at "QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT exist
-
Whenever I add Core5Compat to my find_package in cmake I get an error.
I tried:find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Core5Compat)
and
find_package(Qt6 REQUIRED COMPONENTS Core5Compat Gui Qml Quick)
but both result in
Found package configuration file QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Core5Compat". Expected Config file at "QtPath/6.6.0/msvc2019_64/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT exist
wrote on 22 Oct 2023, 20:02 last edited byThis post is deleted! -
wrote on 22 Oct 2023, 20:12 last edited by
-
wrote on 15 Jul 2024, 06:58 last edited by
This worked for me! Thank you.
-