Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.5.0, 5.11
-
None
-
OSX
Description
Similar to bug #47336 but for static variant of Qt on OS X platform.
Next libraries should be set to INTERFACE_LINK_LIBRARIES property of Qt5::Widgets target to avoid repetition of this code in every user's application.
Frameworks:
"-framework Carbon" "-framework Cocoa" "-framework IOKit" "-framework OpenGL"
3rd party libraries:
"z" "cups"
Qt imported libraries:
Qt5::PrintSupport Qt5::QCocoaIntegrationPlugin
Qt libraries (+ debug variant):
"libqtharfbuzzng.a" "libqtpcre.a" "libQt5PlatformSupport.a"
Additionaly extra source file have to be added with one line of C++ code:
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
I guess this code can be compiled into new library (or may be there already is such library?) or added to target using INTERFACE_SOURCES property (available since CMake 3.1).
Attachments
Issue Links
- depends on
-
QTBUG-38913 Can't link against static Qt5 (missing usage requirements for static libs wrt harfbuzz/glib/others)
- Closed