Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to find "gl.h" after update to MacOS Mojave
Forum Updated to NodeBB v4.3 + New Features

Failed to find "gl.h" after update to MacOS Mojave

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 4.8k Views 1 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.
  • K Offline
    K Offline
    koldoon
    wrote on last edited by
    #1

    Well, it seems expected, but anyway, after update to the latest mac os Mojave I'm facing a problem finding needed headers:

    CMake Error at /Developer/Qt/5.11.2/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
      Failed to find "gl.h" in
      "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers".
    

    Any ideas, workarounds? How to deal with this for now?

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

      Hi,

      If you have a .qmake.stash file somewhere in the build folder, delete it and re-build your project.

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

      K 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        If you have a .qmake.stash file somewhere in the build folder, delete it and re-build your project.

        K Offline
        K Offline
        koldoon
        wrote on last edited by
        #3

        @SGaist it helped! Thank you! I thought they removed opengl completely, but seems everything still do work.

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

          IIRC, they deprecated it. But they can't remove the API in the same release that they deprecated it. They have to give people some time to port away to their new API.

          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