2013-11-03 3 views
5

Sto usando Cmake per creare un progetto QT su OS X 10.9.Problemi Qt 5 e OS X Mavericks

Dal momento che Mavericks, la posizione delle intestazioni OpenGL sembra essere cambiata. La cartella /System/Library/Frameworks/OpenGL.framework/Headers manca ora, e cmake dice

CMake Error at /Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:8 (message): 
    Failed to find "gl.h" in 
    "/System/Library/Frameworks/OpenGL.framework/Headers" 
    "/System/Library/Frameworks/AGL.framework/Headers""." 

e mi chiede di fornire il percorso corretto in questa variabile _qt5gui_OPENGL_INCLUDE_DIR, che ho provato con il percorso apparentemente spostato le intestazioni al Mavericks:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers 

Ma ancora ottengo il seguente errore cmake:

CMake Error at /Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message): 
    The imported target "Qt5::Gui" references the file 

    "/System/Library/Frameworks/OpenGL.framework/Headers" 

    but this file does not exist. Possible reasons include: 

    * The file was deleted, renamed, or moved to another location. 

    * An install or uninstall procedure did not complete successfully. 

    * The installation package was faulty and contained 

    "/Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake" 

    but not all the files it references. 

Call Stack (most recent call first): 
    /Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:57 (_qt5_Gui_check_file_exists) 
    /Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:64 (_qt5gui_find_extra_libs) 
    /Applications/Qt/5.1.1/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:123 (include) 
    CMakeLists.txt:40 (find_package) 

Ora io non so che cosa fare su questo errore, tutte le idee?

+0

Qt 5.1.1 è stato rilasciato molto prima cani sciolti, in tal modo i problemi sono da aspettarsi. –

risposta