Qt 6.7.2 - Could NOT find OpenGL
-
Hi,
I recently installed Qt 6.7.2 via the maintenance tool on a linux system (Opensuse Tumbleweed).
While opening an older project from another machine I set CMAKE_PREFIX_PATH to the new location of the Qt installation and get now the following messages:
[cmake] Führe /usr/bin/cmake -S /home/joachim/nas/08_source/07_C++/JHXManager -B /home/joachim/nas/08_source/07_C++/JHXManager/build/Desktop_Qt_6_7_2-Debug in /home/joachim/nas/08_source/07_C++/JHXManager/build/Desktop_Qt_6_7_2-Debug aus. [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find WrapOpenGL (missing: WrapOpenGL_FOUND) [cmake] CMake Warning at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake [cmake] [cmake] but it set Qt6Gui_FOUND to FALSE so package "Qt6Gui" is considered to be [cmake] NOT FOUND. Reason given by package: [cmake] [cmake] Qt6Gui could not be found because dependency WrapOpenGL could not be found. [cmake] [cmake] Configuring with --debug-find-pkg=WrapOpenGL might reveal details why the [cmake] package was not found. [cmake] [cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some [cmake] of the path variables that find_package uses to try and find the package. [cmake] [cmake] Call Stack (most recent call first): [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency) [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:42 (_qt_internal_find_qt_dependencies) [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:43 (include) [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:169 (find_package) [cmake] CMakeLists.txt:26 (find_package) [cmake] [cmake] [cmake] CMake Warning at /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:169 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake [cmake] [cmake] but it set Qt6Widgets_FOUND to FALSE so package "Qt6Widgets" is considered [cmake] to be NOT FOUND. Reason given by package: [cmake] [cmake] Qt6Widgets could not be found because dependency Qt6Gui could not be found. [cmake] [cmake] Configuring with --debug-find-pkg=Qt6Gui might reveal details why the [cmake] package was not found. [cmake] [cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some [cmake] of the path variables that find_package uses to try and find the package. [cmake] [cmake] Call Stack (most recent call first): [cmake] CMakeLists.txt:26 (find_package) [cmake] [cmake] [cmake] CMake Error at CMakeLists.txt:26 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6/Qt6Config.cmake [cmake] [cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT [cmake] FOUND. Reason given by package: [cmake] [cmake] Failed to find required Qt component "Widgets". [cmake] [cmake] Expected Config file at [cmake] "/home/joachim/Qt/6.7.2/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake" [cmake] exists [cmake] [cmake] [cmake] [cmake] Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the [cmake] package was not found. [cmake] [cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some [cmake] of the path variables that find_package uses to try and find the package. [cmake] [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] [cmake] Das Kommando "/usr/bin/cmake -S /home/joachim/nas/08_source/07_C++/JHXManager -B /home/joachim/nas/08_source/07_C++/JHXManager/build/Desktop_Qt_6_7_2-Debug" wurde beendet, Rückgabewert 1. [cmake] [cmake] Verstrichene Zeit: 00:00.
trying cmake from Qt it throws:
joachim@Theophila:~/Qt/Tools/CMake/bin> cmake -S /home/joachim/nas/08_source/07_C++/JHXManager CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /home/joachim/Qt/Tools/CMake/share/cmake CMake Error: Error executing cmake::LoadCache(). Aborting.
How to fix!
Joachim
-
Hi,
Did you install the OpenGL development package ?
-
In the meanwhile I could fix two issues. One typo and a misunderstanding.
OpenGL development package is now installed and everything is running. I was not aware that there are no general OpenGL dev files but special ones for Qt. Since I am not using the packages by my distro provider but from Qt directly I thought the devel files from the Linux distribution are not needed.
Thnx
-
-
There are no "special ones for Qt". The OpenGL dev package is required as it's your distribution that handle this low level dependency.
-
From the looks of it that package is the Qt opengl module development files which is not the same as the OpenGL librairies that were missing. That package may have the latter as dependency though.