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

Undefined symbols: qt_mac_applicationmenu_string(int) (in qtbase/src/plugins/platforms/cocoa/qcocoamenuitem.mm)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.0.1
    • Core: Plugins
    • None
    • macOS

    Description

      The issue is here:

      qcocoamenuitem.mm
      QString QCocoaMenuItem::mergeText()
      {
          extern QString qt_mac_applicationmenu_string(int type);
      [...]
      

      Changing those lines to:

      qcocoamenuitem.mm.modified
      QT_BEGIN_NAMESPACE
      extern QString qt_mac_applicationmenu_string(int type);
      QT_END_NAMESPACE
      
      QString QCocoaMenuItem::mergeText()
      {
        [...]
      

      Fixes the issue.

      Apparently, the build system doesn't build Qt on OS X, with a custom namespace

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            aundro Arnaud Diederen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes