[MacPorts] #58378: Qt5 CMake component fails under Xcode-10.2

MacPorts noreply at macports.org
Wed Apr 24 00:56:23 UTC 2019


#58378: Qt5 CMake component fails under Xcode-10.2
------------------------+------------------------
 Reporter:  mouse07410  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  qt5-qtbase
------------------------+------------------------
 MacOS Mojave 10.14.4, Xcode-10.2.1, current Macports and all the ports.

 File
 {{{/opt/local/libexec/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake}}}
 lists paths to find {{{gl.h}}} file:
 {{{
 set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers"
 "/System/Library/Frameworks/AGL.framework/Headers")
 find_path(_qt5gui_OPENGL_INCLUDE_DIR gl.h
     PATHS ${_GL_INCDIRS}
 )
 if (NOT _qt5gui_OPENGL_INCLUDE_DIR)
     message(FATAL_ERROR "Failed to find \"gl.h\" in \"${_GL_INCDIRS}\".")
 endif()
 unset(_GL_INCDIRS)
 }}}

 Under Xcode-10.2.1 this is not correct - the correct location is
 {{{
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers
 }}}

 So, this line in question should be changed to:
 {{{
 set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers"
 "/System/Library/Frameworks/AGL.framework/Headers"
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers")
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58378>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list