The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core"
Unsolved
General and Desktop
-
Hi everyone.
I am trying to build my app on ubuntu 22.04 with Qt6.5.0 But it seems occur this CMake Error. Anyone know where is the reason?
Thanks -
@sierdzio like this:
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools OpenGL OpenGLWidgets)
And my source code works on Ubuntu 20
-
@Son-Pham yes, that looks correct. Maybe throw
Core
in there to be sure.Are you certain you are building with Qt 6.5.0? Maybe you have some other Qt 5 installation in
$PATH
?