Widgets component is not recognized in CMakeList file
Solved
General and Desktop
-
Hi everyone,
I have newly created virtual machine (VBox) and Ubuntu 20.04.
I have installed Qt and QtCreator.
I can't build my first application. The error appears in CMakeList file in line:find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
The error description is like that:
Found package configuration file: /home/xxx/Qt/6.0.4/gcc_64/lib/cmake/Qt6/Qt6Config.make but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Widgets" config file at""Can anyone help me?
Thanks in advanceBest Regards
Milosz