Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
@Son-Pham how do you import Qt in your cmake? find_project etc.
find_project
@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.
Core
Are you certain you are building with Qt 6.5.0? Maybe you have some other Qt 5 installation in $PATH?
$PATH
@sierdzio This is $PATH I set
I ran CMake command like this:
cmake -DCMAKE_PREFIX_PATH=/home/Qt/6.5.2/gcc_64 -DQT_DIR=/home/Qt/6.5.2/gcc_64/lib/cmake/Qt6 -DCMAKE_BUILD_TYPE=Release ..