Undefined symbols for architecture x86_64:
"QMacCocoaViewContainer::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
WebViewNative
::qt_metacall(QMetaObject::Call,
int,
void**) in moc_WebKitClass.
o "QMacCocoaViewContainer::qt_metacast(char const*)", referenced from:
WebViewNative::qt_metacast(char const*) in moc_WebKitClass.o
"QMacCocoaViewContainer::setCocoaView(void*)", referenced from:
WebViewNative
::WebViewNative(QWidget*) in WebKitClass.
o "QMacCocoaViewContainer::staticMetaObject", referenced from:
WebViewNative::staticMetaObject in moc_WebKitClass.o
"QMacCocoaViewContainer::QMacCocoaViewContainer(void*, QWidget*)", referenced from:
WebViewNative
::WebViewNative(QWidget*) in WebKitClass.
o "QMacCocoaViewContainer::~QMacCocoaViewContainer()", referenced from:
WebViewNative
::WebViewNative(QWidget*) in WebKitClass.
o WebViewNative::~WebViewNative() in moc_WebKitClass.o
"QMacCocoaViewContainer::cocoaView() const", referenced from:
WebViewNative
::openURL(QString) in WebKitClass.
o "typeinfo for QMacCocoaViewContainer", referenced from:
typeinfo for WebViewNative in moc_WebKitClass.o
ld: symbol(s) not found for architecture x86_64
Undefined symbols for architecture x86_64:
"QMacCocoaViewContainer::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
WebViewNative::qt_metacall(QMetaObject::Call, int, void**) in moc_WebKitClass.o
"QMacCocoaViewContainer::qt_metacast(char const*)", referenced from:
WebViewNative::qt_metacast(char const*) in moc_WebKitClass.o
"QMacCocoaViewContainer::setCocoaView(void*)", referenced from:
WebViewNative::WebViewNative(QWidget*) in WebKitClass.o
"QMacCocoaViewContainer::staticMetaObject", referenced from:
WebViewNative::staticMetaObject in moc_WebKitClass.o
"QMacCocoaViewContainer::QMacCocoaViewContainer(void*, QWidget*)", referenced from:
WebViewNative::WebViewNative(QWidget*) in WebKitClass.o
"QMacCocoaViewContainer::~QMacCocoaViewContainer()", referenced from:
WebViewNative::WebViewNative(QWidget*) in WebKitClass.o
WebViewNative::~WebViewNative() in moc_WebKitClass.o
"QMacCocoaViewContainer::cocoaView() const", referenced from:
WebViewNative::openURL(QString) in WebKitClass.o
"typeinfo for QMacCocoaViewContainer", referenced from:
typeinfo for WebViewNative in moc_WebKitClass.o
ld: symbol(s) not found for architecture x86_64
To copy to clipboard, switch view to plain text mode
The .pro has not been changed and I understand what the error says but I don't understand why it happens. I missed some extra configuration for Qt 5? Is a Qt5 bug? Because the Qt 5 for Mac is only 64bits (downloaded from Internet, not compiled by me).
LIBS += -framework Cocoa -framework WebKit
OBJECTIVE_SOURCES += src/webkit_mac/WebKitClass.mm
HEADERS += src/webkit_mac/WebKitClass.h
LIBS += -framework Cocoa -framework WebKit
OBJECTIVE_SOURCES += src/webkit_mac/WebKitClass.mm
HEADERS += src/webkit_mac/WebKitClass.h
To copy to clipboard, switch view to plain text mode
I'll omit the second error by now, at this moment is commented in my code and don't breaks my compilation process (I'll try to fix it after...) I need to fix this before.
Bookmarks