Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Problems linking QMacCocoaViewContainer

Problems linking QMacCocoaViewContainer

Scheduled Pinned Locked Moved Language Bindings
4 Posts 3 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    foogered
    wrote on last edited by
    #1

    Hello,

    I am trying to subclass QMacCocoaViewContainer, but when I link the application I get the following errors:

    @Undefined symbols for architecture x86_64:
    "QMacCocoaViewContainer::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
    QMacFrame::qt_metacall(QMetaObject::Call, int, void**) in moc_qmacframe.o
    "QMacCocoaViewContainer::qt_metacast(char const*)", referenced from:
    QMacFrame::qt_metacast(char const*) in moc_qmacframe.o
    "QMacCocoaViewContainer::staticMetaObject", referenced from:
    QMacFrame::staticMetaObject in moc_qmacframe.o
    "QMacCocoaViewContainer::QMacCocoaViewContainer(void*, QWidget*)", referenced from:
    QMacFrame::QMacFrame(QWidget*) in qmacframe.o
    "QMacCocoaViewContainer::~QMacCocoaViewContainer()", referenced from:
    QMacFrame::~QMacFrame() in moc_qmacframe.o
    "typeinfo for QMacCocoaViewContainer", referenced from:
    typeinfo for QMacFrame in moc_qmacframe.o
    ld: symbol(s) not found for architecture x86_64@

    The file uses the .mm extension. In my project file I have the file under OBJECTIVE_SOURCES and I am linking with "-framework Cocoa".

    I also noticed that the QT_MAC_USE_COCOA macro is not defined. Is QMacCocoaViewContainer only available with a cocoa build of Qt?

    Thank you

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PysCowboy
      wrote on last edited by
      #2

      QMacCocoaViewContainer is now unfortunately a part of the external QtMacExtras module.
      http://qt.gitorious.org/qt/qtmacextras

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PysCowboy
        wrote on last edited by
        #3

        [[blank-post-content-placeholder]]

        1 Reply Last reply
        0
        • crystalideaC Offline
          crystalideaC Offline
          crystalidea
          wrote on last edited by
          #4

          [quote author="PysCowboy" date="1373363229"]QMacCocoaViewContainer is now unfortunately a part of the external QtMacExtras module.
          http://qt.gitorious.org/qt/qtmacextras
          [/quote]

          This is not true, it's a part of QtWidgets

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved