-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.1.1, 5.2.0 Beta1
-
None
-
OS X 10.9 (Mavericks)
Qt 5.2.0 Beta1 or Qt 5.1.1
cmake 2.8.12
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/[...]