[Interest] Issue with CMake and Qt6 on Windows
Alexandru Croitor
alexandru.croitor at qt.io
Wed Aug 30 15:40:48 CEST 2023
Hi,
Instead of specifying the Qt6_DIR env var, pass -DCMAKE_PREFIX_PATH=C:\Qt\6.6.0\msvc2019_64 to CMake.
Specifying the Qt6_DIR cache var is not sufficient to find Qt at the moment (there is an open bug about it).
Specifying the Qt6_DIR env var not being sufficient is likely the same issue.
> On 30. Aug 2023, at 15:31, Corentin Bacqué-cazenave via Interest <interest at qt-project.org> wrote:
>
> Hi,
> Itm trying to build a project which use Qt on Windows with CMake.
> I defined an env-variable Qt6_DIR to C:\Qt\6.6.0\msvc2019_64
> I have the following error:
> " Found package configuration file:
>
> C:/Qt/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 "Widgets".
>
> Expected Config file at
> "C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
> exists"
> I'm using Qt6.6Beta3.
> Does anyone has any idea on it?
> Thanks
> --
> Corentin : expert certifié 2022 et Sponsor NVDA, Référent commission Cécité & Co - Fédé 100% Handinamique
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list