gui: link with OpenGL framework
qopengl.h pulls in headers from the OpenGL framework on macos when opengl is enabled. We should therefore also link the OpenGL framework. fixes linker error in libqcocoa: Undefined symbols for architecture x86_64: "_glGetIntegerv", referenced from: QCocoaGLContext::updateSurfaceFormat() in libqcocoa.a(qcocoaglcontext.mm.o) "_glGetString", referenced from: QCocoaGLContext::updateSurfaceFormat() in libqcocoa.a(qcocoaglcontext.mm.o) Change-Id: I02d2c80e2652da0cf16eaca7ab161cf711599dc2 Pick-to: 6.5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 6f41c1652f73e1d79d6a4a91d009671a1e285b15) (cherry picked from commit cffb015be5811eea5869d5f4ab5708ca692ff258) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
afa9ae9b0c
commit
8e0403625c
@ -38,6 +38,7 @@ macro(qt_find_apple_system_frameworks)
|
||||
qt_internal_find_apple_system_framework(FWEventKit EventKit)
|
||||
qt_internal_find_apple_system_framework(FWHealthKit HealthKit)
|
||||
qt_internal_find_apple_system_framework(FWUniformTypeIdentifiers UniformTypeIdentifiers)
|
||||
qt_internal_find_apple_system_framework(FWOpenGL OpenGL)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
@ -395,6 +395,11 @@ qt_internal_extend_target(Gui CONDITION MACOS
|
||||
${FWAppKit}
|
||||
)
|
||||
|
||||
qt_internal_extend_target(Gui CONDITION MACOS AND QT_FEATURE_opengl
|
||||
PUBLIC_LIBRARIES
|
||||
${FWOpenGL}
|
||||
)
|
||||
|
||||
qt_internal_extend_target(Gui CONDITION UIKIT
|
||||
SOURCES
|
||||
platform/ios/qiosnativeinterface.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user