Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34289

Wrong opengl search path in cmake modules on OS X 10.9 (Mavericks)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.1.1, 5.2.0 Beta1
    • Build System
    • None
    • OS X 10.9 (Mavericks)
      Qt 5.2.0 Beta1 or Qt 5.1.1
      cmake 2.8.12
    • macOS

      Just upgraded to Mavericks and now I can't build any project with cmake (v2.8.12). I tried both Qt 5.2.0 Beta1 and Qt 5.1.1.

      The error message is:

      CMake Error at /Users/hilefoks/Qt/5.2.0-beta1/5.2.0-beta1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
      Failed to find "gl.h" in
      "/System/Library/Frameworks/OpenGL.framework/Headers"
      "/System/Library/Frameworks/AGL.framework/Headers""."
      Call Stack (most recent call first):
      /Users/hilefoks/Qt/5.2.0-beta1/5.2.0-beta1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:141 (include)
      /Users/hilefoks/Qt/5.2.0-beta1/5.2.0-beta1/clang_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:80 (find_package)
      CMakeLists.txt:18 (find_package)

      The headers are not installed in /System/Library/Frameworks, but in the XCode directory. The variable CMAKE_OSX_SYSROOT points to the correct directory (i.e. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk). However, i.a. Qt5GuiConfigExtras.cmake uses a fixed search path /System/Library/[...]

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            hilefoks Stefan Böhmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes