From 5603f94eaa538dbe28fc426065d65a27799adedc Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Wed, 19 Oct 2011 13:34:11 +0200 Subject: Remove "duplicate objective-c class" warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt would dlopen both libqcocoa.dylib and libqcocoa_debug.dylib, causing duplicate implementations if the classes in the cocoa plugin (QNSView etc) Fix this by building the release version only. Change-Id: I1244a83c49999ce28edd97400e792fa2a0665fec Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/cocoa/cocoa.pro | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro index 2c7acc0fcb..d69f08e86e 100644 --- a/src/plugins/platforms/cocoa/cocoa.pro +++ b/src/plugins/platforms/cocoa/cocoa.pro @@ -53,6 +53,11 @@ CONFIG += qpa/basicunixfontdatabase target.path += $$[QT_INSTALL_PLUGINS]/platforms INSTALLS += target +# Build the release libqcocoa.dylib only, skip the debug version. +# The Qt plugin loader will dlopen both if found, causing duplicate +# Objective-c class definitions for the classes defined in the plugin. +contains(QT_CONFIG,release):CONFIG -= debug + # Acccessibility debug support # DEFINES += QT_COCOA_ENABLE_ACCESSIBILITY_INSPECTOR # include ($$PWD/../../../../util/accessibilityinspector/accessibilityinspector.pri) -- cgit v1.2.3