Qt6Gui could not be found because dependency WrapOpenGL could not be found
Moved
Unsolved
Installation and Deployment
-
I installed Qt just minutes ago, created a small app, and it won't run. Right out of the box, Qt is broken. I've made zero changes to anything, and it's broken. Here is the Message output in full:
[cmake] Running /home/floyd/Qt/Tools/CMake/bin/cmake -S /media/floyd/TOSHIBA/QtPythonProjects/Diary -B /media/floyd/TOSHIBA/QtPythonProjects/Diary/build/Desktop_Qt_6_8_1-Debug -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/media/floyd/TOSHIBA/QtPythonProjects/Diary/build/Desktop_Qt_6_8_1-Debug/.qtc/package-manager/auto-setup.cmake -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/x86_64-linux-gnu-g++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG -DCMAKE_PREFIX_PATH:PATH=/home/floyd/Qt/6.8.1/gcc_64 -DCMAKE_BUILD_TYPE:STRING=Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/floyd/Qt/6.8.1/gcc_64/bin/qmake in /media/floyd/TOSHIBA/QtPythonProjects/Diary/build/Desktop_Qt_6_8_1-Debug. [cmake] -- The CXX compiler identification is GNU 13.3.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++ - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD [cmake] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success [cmake] -- Found Threads: TRUE [cmake] -- Performing Test HAVE_STDATOMIC [cmake] -- Performing Test HAVE_STDATOMIC - Success [cmake] -- Found WrapAtomic: TRUE [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 /home/floyd/Qt/Tools/CMake/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/floyd/Qt/6.8.1/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/floyd/Qt/6.8.1/gcc_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:143 (find_dependency) [cmake] /home/floyd/Qt/6.8.1/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:43 (_qt_internal_find_qt_dependencies) [cmake] /home/floyd/Qt/6.8.1/gcc_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:43 (include) [cmake] /home/floyd/Qt/6.8.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package) [cmake] CMakeLists.txt:13 (find_package) [cmake] [cmake] [cmake] CMake Warning at /home/floyd/Qt/6.8.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:181 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/floyd/Qt/6.8.1/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:13 (find_package) [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] CMake Error at CMakeLists.txt:13 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/floyd/Qt/6.8.1/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/floyd/Qt/6.8.1/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] [cmake] The command "/home/floyd/Qt/Tools/CMake/bin/cmake -S /media/floyd/TOSHIBA/QtPythonProjects/Diary -B /media/floyd/TOSHIBA/QtPythonProjects/Diary/build/Desktop_Qt_6_8_1-Debug -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/media/floyd/TOSHIBA/QtPythonProjects/Diary/build/Desktop_Qt_6_8_1-Debug/.qtc/package-manager/auto-setup.cmake -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/x86_64-linux-gnu-g++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG -DCMAKE_PREFIX_PATH:PATH=/home/floyd/Qt/6.8.1/gcc_64 -DCMAKE_BUILD_TYPE:STRING=Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/floyd/Qt/6.8.1/gcc_64/bin/qmake" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:08.
I don't know how to fix this because I didn't do anything but install it. Again, I made no changes to Qt. These issues you see, they're right out-of-the-box . I'd like to get this straightened out, but I don't know how. Not sure why a fresh install would be broken in such a fashion as this.!
This is what I have installed:
-