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. Qt 6.7.2 - Could NOT find OpenGL
Forum Updated to NodeBB v4.3 + New Features

Qt 6.7.2 - Could NOT find OpenGL

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 1.8k Views 3 Watching
  • 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.
  • MasterQM Offline
    MasterQM Offline
    MasterQ
    wrote on last edited by
    #1

    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.
    

    d59a3837-0e83-49a4-9f44-d10a7ca5d75d-grafik.png

    How to fix!

    Joachim

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you install the OpenGL development package ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • MasterQM Offline
        MasterQM Offline
        MasterQ
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • MasterQM MasterQ has marked this topic as solved on
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          There are no "special ones for Qt". The OpenGL dev package is required as it's your distribution that handle this low level dependency.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          MasterQM 1 Reply Last reply
          2
          • SGaistS SGaist

            There are no "special ones for Qt". The OpenGL dev package is required as it's your distribution that handle this low level dependency.

            MasterQM Offline
            MasterQM Offline
            MasterQ
            wrote on last edited by
            #5

            @SGaist said in Qt 6.7.2 - Could NOT find OpenGL:

            There are no "special ones for Qt".

            In my distro they are called

            qt6-opengl-devel - Development files for the Qt 6 OpenGL library

            hm

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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