Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92883

[qt6] duplicate symbols in mac style plugin

    XMLWordPrintable

Details

    • a372b35d93d4deb14ba9b855c49bcbd328b32381 (qt/qtquickcontrols2/dev) 06eefa58c987068651fc4bd0063d122178543696 (qt/qtquickcontrols2/6.0) f4c31d1d960a626c8d370fb9f021f56e2ac6709c (qt/qtquickcontrols2/6.1)

    Description

      when linking my executable, i get a duplicate symbol definition:

      [4/4 2.3/sec] Linking CXX executable abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt
      ld: warning: duplicate symbol '_OBJC_CLASS_$_QDarkNSBox_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_METACLASS_$_QDarkNSBox_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_CLASS_$_QVerticalSplitView_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_METACLASS_$_QVerticalSplitView_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_CLASS_$_QIndeterminateProgressIndicator_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_METACLASS_$_QIndeterminateProgressIndicator_NI_6_x_dev' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      ld: warning: duplicate symbol '_OBJC_IVAR_$_QIndeterminateProgressIndicator_NI_6_x_dev._animators' in:
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./qml/QtQuick/NativeStyle/libqtquickcontrols2nativestyleplugin.a(qquickmacstyle_mac.mm.o)
          /Users/tim/dev/qt3rd/Qt-6.x-dev-macx-clang-static/./plugins/styles/libqmacstyle.a(qmacstyle_mac.mm.o)
      

      and at startup:

      objc[41301]: Class QIndeterminateProgressIndicator_NI_6_x_dev is implemented in both /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0decf8) and /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0decf8). One of the two will be used. Which one is undefined.
      objc[41301]: Class QVerticalSplitView_NI_6_x_dev is implemented in both /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0ded70) and /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0ded70). One of the two will be used. Which one is undefined.
      objc[41301]: Class QDarkNSBox_NI_6_x_dev is implemented in both /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0ded98) and /Users/tim/build/nilibs-xc11-Debug22/abFramework/Demo/ABDemoQt.app/Contents/MacOS/ABDemoQt (0x10b0ded98). One of the two will be used. Which one is undefined.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: