Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt6Gui could not be found because dependency WrapOpenGL could not be found
Forum Updated to NodeBB v4.3 + New Features

Qt6Gui could not be found because dependency WrapOpenGL could not be found

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DriftwoodD Offline
    DriftwoodD Offline
    Driftwood
    wrote on last edited by Driftwood
    #1

    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:
    Screenshot from 2024-12-19 10-58-07.png

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from Qt 6 on
    • I Offline
      I Offline
      IdrisCodes
      wrote on last edited by
      #2

      Had the same issue.

      Running

      sudo apt install libgl1-mesa-dev 
      

      solved it as suggested by this answer.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved