![]() Registered Member ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Wed May 20, 2009 12:50 am
Hi, while practicing I've reached the second KDE tutorial but I keep getting a CMake error when trying to configure. The tutorial can be found here.
The error I receive is the following:
I played around with the CMakeLists.txt without success and googled about the error, also without success. There are two things that seem weird to me: first, I found almost no reference to such an error in Google, and also, the first tutorial configures, compiles and runs smoothly. Any pointers at what might the problem be? |
![]() Administrator ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Wed May 20, 2009 5:32 am
Which version of CMake do you have installed?
Also, which version of KDE Libs do you have installed?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Wed May 20, 2009 1:48 pm
hi there, thanks for your reply. Here's the information requested:
KDE Libs version is 4.2.2 and in regards to CMake:
|
![]() Administrator ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Thu May 21, 2009 10:49 am
Can you please check that the CMakeLists.txt file for both projects matches that on the website, and no special characters ( non ASCII ) have been introduced.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Thu May 21, 2009 7:11 pm
Thanks a lot! Apparently the problem must have been with the non ASCII characters, since after rewriting the file from scratch it worked, but now I'm getting a set of error messages on the make stage. I'm researching now, but they are very cryptic for me at the moment:
[code] [ 0%] Built target main.cpp_automoc Scanning dependencies of target main.cpp [ 50%] Building CXX object CMakeFiles/main.cpp.dir/main.cpp_automoc.o Linking CXX executable main.cpp /usr/lib/gcc/i486-slackware-linux/4.3.3/../../../crt1.o: In function `_start': /glibc-tmp-f6d5861e158df3fa60b61b5911443c6c/glibc-2.9-20090316/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main' CMakeFiles/main.cpp.dir/mainwindow.o: In function `MainWindow': /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:3: undefined reference to `KXMLGUIClient::KXMLGUIClient()' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:3: undefined reference to `KXmlGuiWindow::KXmlGuiWindow(QWidget*, QFlags)' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:5: undefined reference to `KTextEdit::KTextEdit(QWidget*)' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:6: undefined reference to `QMainWindow::setCentralWidget(QWidget*)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `QString': /usr/lib/qt/include/QtCore/qstring.h:865: undefined reference to `QString::shared_null' CMakeFiles/main.cpp.dir/mainwindow.o: In function `QBasicAtomicInt::ref()': /usr/lib/qt/include/QtCore/qatomic_i386.h:120: undefined reference to `QString::shared_null' CMakeFiles/main.cpp.dir/mainwindow.o: In function `MainWindow': /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:7: undefined reference to `KXmlGuiWindow::setupGUI(QFlags, QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `~QString': /usr/lib/qt/include/QtCore/qstring.h:866: undefined reference to `QString::free(QString::Data*)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `MainWindow': /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:3: undefined reference to `KXmlGuiWindow::KXmlGuiWindow(QWidget*, QFlags)' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:5: undefined reference to `KTextEdit::KTextEdit(QWidget*)' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:6: undefined reference to `QMainWindow::setCentralWidget(QWidget*)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `QString': /usr/lib/qt/include/QtCore/qstring.h:865: undefined reference to `QString::shared_null' CMakeFiles/main.cpp.dir/mainwindow.o: In function `QBasicAtomicInt::ref()': /usr/lib/qt/include/QtCore/qatomic_i386.h:120: undefined reference to `QString::shared_null' CMakeFiles/main.cpp.dir/mainwindow.o: In function `MainWindow': /home/jdevincenzo/kde_programming/tutorial2/mainwindow.cpp:7: undefined reference to `KXmlGuiWindow::setupGUI(QFlags, QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `~QString': /usr/lib/qt/include/QtCore/qstring.h:866: undefined reference to `QString::free(QString::Data*)' CMakeFiles/main.cpp.dir/mainwindow.o: In function `~MainWindow': /home/jdevincenzo/kde_programming/tutorial2/mainwindow.h:8: undefined reference to `KXmlGuiWindow::~KXmlGuiWindow()' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.h:8: undefined reference to `KXMLGUIClient::~KXMLGUIClient()' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.h:8: undefined reference to `KXmlGuiWindow::~KXmlGuiWindow()' /home/jdevincenzo/kde_programming/tutorial2/mainwindow.h:8: undefined reference to `KXMLGUIClient::~KXMLGUIClient()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xc): undefined reference to `KXmlGuiWindow::metaObject() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x10): undefined reference to `KXmlGuiWindow::qt_metacast(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x14): undefined reference to `KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x20): undefined reference to `KXmlGuiWindow::event(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x24): undefined reference to `QObject::eventFilter(QObject*, QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x28): undefined reference to `QObject::timerEvent(QTimerEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x2c): undefined reference to `QObject::childEvent(QChildEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x30): undefined reference to `QObject::customEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x34): undefined reference to `QObject::connectNotify(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x38): undefined reference to `QObject::disconnectNotify(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x3c): undefined reference to `QWidget::devType() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x40): undefined reference to `QWidget::setVisible(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x44): undefined reference to `QWidget::sizeHint() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x48): undefined reference to `QWidget::minimumSizeHint() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x4c): undefined reference to `QWidget::heightForWidth(int) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x50): undefined reference to `QWidget::paintEngine() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x54): undefined reference to `QWidget::mousePressEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x58): undefined reference to `QWidget::mouseReleaseEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x5c): undefined reference to `QWidget::mouseDoubleClickEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x60): undefined reference to `QWidget::mouseMoveEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x64): undefined reference to `QWidget::wheelEvent(QWheelEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x68): undefined reference to `QWidget::keyPressEvent(QKeyEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x6c): undefined reference to `QWidget::keyReleaseEvent(QKeyEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x70): undefined reference to `QWidget::focusInEvent(QFocusEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x74): undefined reference to `QWidget::focusOutEvent(QFocusEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x78): undefined reference to `QWidget::enterEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x7c): undefined reference to `QWidget::leaveEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x80): undefined reference to `QWidget::paintEvent(QPaintEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x84): undefined reference to `QWidget::moveEvent(QMoveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x88): undefined reference to `QWidget::resizeEvent(QResizeEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x8c): undefined reference to `KMainWindow::closeEvent(QCloseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x90): undefined reference to `QMainWindow::contextMenuEvent(QContextMenuEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x94): undefined reference to `QWidget::tabletEvent(QTabletEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x98): undefined reference to `QWidget::actionEvent(QActionEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x9c): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xa0): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xa4): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xa8): undefined reference to `QWidget::dropEvent(QDropEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xac): undefined reference to `QWidget::showEvent(QShowEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xb0): undefined reference to `QWidget::hideEvent(QHideEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xb4): undefined reference to `QWidget::x11Event(_XEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xb8): undefined reference to `QWidget::changeEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xbc): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xc0): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xc4): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xc8): undefined reference to `QWidget::focusNextPrevChild(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xcc): undefined reference to `QWidget::styleChange(QStyle&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xd0): undefined reference to `QWidget::enabledChange(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xd4): undefined reference to `QWidget::paletteChange(QPalette const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xd8): undefined reference to `QWidget::fontChange(QFont const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xdc): undefined reference to `QWidget::windowActivationChange(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xe0): undefined reference to `QWidget::languageChange()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xe4): undefined reference to `QMainWindow::createPopupMenu()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xe8): undefined reference to `KXmlGuiWindow::applyMainWindowSettings(KConfigGroup const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xec): undefined reference to `KMainWindow::setCaption(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xf0): undefined reference to `KMainWindow::setCaption(QString const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xf4): undefined reference to `KMainWindow::setPlainCaption(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xf8): undefined reference to `KMainWindow::queryExit()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0xfc): undefined reference to `KMainWindow::queryClose()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x108): undefined reference to `KMainWindow::saveGlobalProperties(KConfig*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x10c): undefined reference to `KMainWindow::readGlobalProperties(KConfig*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x110): undefined reference to `KMainWindow::showAboutApplication()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x114): undefined reference to `KXmlGuiWindow::guiFactory()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x118): undefined reference to `KXmlGuiWindow::finalizeGUI(KXMLGUIClient*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x11c): undefined reference to `KXmlGuiWindow::configureToolbars()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x120): undefined reference to `KXmlGuiWindow::slotStateChanged(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x124): undefined reference to `KXmlGuiWindow::saveNewToolbarConfig()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x138): undefined reference to `non-virtual thunk to QWidget::devType() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x13c): undefined reference to `non-virtual thunk to QWidget::paintEngine() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x140): undefined reference to `non-virtual thunk to QWidget::metric(QPaintDevice::PaintDeviceMetric) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x154): undefined reference to `KXMLGUIBuilder::containerTags() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x158): undefined reference to `KXMLGUIBuilder::createContainer(QWidget*, int, QDomElement const&, QAction*&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x15c): undefined reference to `KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x160): undefined reference to `KXMLGUIBuilder::customTags() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x164): undefined reference to `KXMLGUIBuilder::createCustomElement(QWidget*, int, QDomElement const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x168): undefined reference to `KXMLGUIBuilder::removeCustomElement(QWidget*, QAction*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x16c): undefined reference to `non-virtual thunk to KXmlGuiWindow::finalizeGUI(KXMLGUIClient*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x170): undefined reference to `KXMLGUIBuilder::virtual_hook(int, void*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1bc): undefined reference to `KXMLGUIClient::action(QDomElement const&) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1c0): undefined reference to `KXMLGUIClient::actionCollection() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1c4): undefined reference to `KXMLGUIClient::componentData() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1c8): undefined reference to `KXMLGUIClient::domDocument() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1cc): undefined reference to `KXMLGUIClient::xmlFile() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1d0): undefined reference to `KXMLGUIClient::localXMLFile() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1d4): undefined reference to `KXMLGUIClient::setComponentData(KComponentData const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1d8): undefined reference to `KXMLGUIClient::setXMLFile(QString const&, bool, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1dc): undefined reference to `KXMLGUIClient::setLocalXMLFile(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1e0): undefined reference to `KXMLGUIClient::setXML(QString const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1e4): undefined reference to `KXMLGUIClient::setDOMDocument(QDomDocument const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1e8): undefined reference to `KXMLGUIClient::stateChanged(QString const&, KXMLGUIClient::ReverseStateChange)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTV10MainWindow[vtable for MainWindow]+0x1ec): undefined reference to `KXMLGUIClient::virtual_hook(int, void*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x8): undefined reference to `typeinfo for KXmlGuiWindow' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xc): undefined reference to `KXmlGuiWindow::metaObject() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x10): undefined reference to `KXmlGuiWindow::qt_metacast(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x14): undefined reference to `KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x18): undefined reference to `KXmlGuiWindow::~KXmlGuiWindow()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x1c): undefined reference to `KXmlGuiWindow::~KXmlGuiWindow()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x20): undefined reference to `KXmlGuiWindow::event(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x24): undefined reference to `QObject::eventFilter(QObject*, QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x28): undefined reference to `QObject::timerEvent(QTimerEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x2c): undefined reference to `QObject::childEvent(QChildEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x30): undefined reference to `QObject::customEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x34): undefined reference to `QObject::connectNotify(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x38): undefined reference to `QObject::disconnectNotify(char const*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x3c): undefined reference to `QWidget::devType() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x40): undefined reference to `QWidget::setVisible(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x44): undefined reference to `QWidget::sizeHint() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x48): undefined reference to `QWidget::minimumSizeHint() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x4c): undefined reference to `QWidget::heightForWidth(int) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x50): undefined reference to `QWidget::paintEngine() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x54): undefined reference to `QWidget::mousePressEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x58): undefined reference to `QWidget::mouseReleaseEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x5c): undefined reference to `QWidget::mouseDoubleClickEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x60): undefined reference to `QWidget::mouseMoveEvent(QMouseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x64): undefined reference to `QWidget::wheelEvent(QWheelEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x68): undefined reference to `QWidget::keyPressEvent(QKeyEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x6c): undefined reference to `QWidget::keyReleaseEvent(QKeyEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x70): undefined reference to `QWidget::focusInEvent(QFocusEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x74): undefined reference to `QWidget::focusOutEvent(QFocusEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x78): undefined reference to `QWidget::enterEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x7c): undefined reference to `QWidget::leaveEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x80): undefined reference to `QWidget::paintEvent(QPaintEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x84): undefined reference to `QWidget::moveEvent(QMoveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x88): undefined reference to `QWidget::resizeEvent(QResizeEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x8c): undefined reference to `KMainWindow::closeEvent(QCloseEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x90): undefined reference to `QMainWindow::contextMenuEvent(QContextMenuEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x94): undefined reference to `QWidget::tabletEvent(QTabletEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x98): undefined reference to `QWidget::actionEvent(QActionEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x9c): undefined reference to `QWidget::dragEnterEvent(QDragEnterEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xa0): undefined reference to `QWidget::dragMoveEvent(QDragMoveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xa4): undefined reference to `QWidget::dragLeaveEvent(QDragLeaveEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xa8): undefined reference to `QWidget::dropEvent(QDropEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xac): undefined reference to `QWidget::showEvent(QShowEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xb0): undefined reference to `QWidget::hideEvent(QHideEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xb4): undefined reference to `QWidget::x11Event(_XEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xb8): undefined reference to `QWidget::changeEvent(QEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xbc): undefined reference to `QWidget::metric(QPaintDevice::PaintDeviceMetric) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xc0): undefined reference to `QWidget::inputMethodEvent(QInputMethodEvent*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xc4): undefined reference to `QWidget::inputMethodQuery(Qt::InputMethodQuery) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xc8): undefined reference to `QWidget::focusNextPrevChild(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xcc): undefined reference to `QWidget::styleChange(QStyle&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xd0): undefined reference to `QWidget::enabledChange(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xd4): undefined reference to `QWidget::paletteChange(QPalette const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xd8): undefined reference to `QWidget::fontChange(QFont const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xdc): undefined reference to `QWidget::windowActivationChange(bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xe0): undefined reference to `QWidget::languageChange()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xe4): undefined reference to `QMainWindow::createPopupMenu()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xe8): undefined reference to `KXmlGuiWindow::applyMainWindowSettings(KConfigGroup const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xec): undefined reference to `KMainWindow::setCaption(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xf0): undefined reference to `KMainWindow::setCaption(QString const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xf4): undefined reference to `KMainWindow::setPlainCaption(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xf8): undefined reference to `KMainWindow::queryExit()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0xfc): undefined reference to `KMainWindow::queryClose()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x108): undefined reference to `KMainWindow::saveGlobalProperties(KConfig*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x10c): undefined reference to `KMainWindow::readGlobalProperties(KConfig*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x110): undefined reference to `KMainWindow::showAboutApplication()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x114): undefined reference to `KXmlGuiWindow::guiFactory()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x118): undefined reference to `KXmlGuiWindow::finalizeGUI(KXMLGUIClient*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x11c): undefined reference to `KXmlGuiWindow::configureToolbars()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x120): undefined reference to `KXmlGuiWindow::slotStateChanged(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x124): undefined reference to `KXmlGuiWindow::saveNewToolbarConfig()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x164): undefined reference to `typeinfo for KXmlGuiWindow' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x168): undefined reference to `virtual thunk to KXmlGuiWindow::~KXmlGuiWindow()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x16c): undefined reference to `virtual thunk to KXmlGuiWindow::~KXmlGuiWindow()' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x170): undefined reference to `KXMLGUIClient::action(QDomElement const&) const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x174): undefined reference to `KXMLGUIClient::actionCollection() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x178): undefined reference to `KXMLGUIClient::componentData() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x17c): undefined reference to `KXMLGUIClient::domDocument() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x180): undefined reference to `KXMLGUIClient::xmlFile() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x184): undefined reference to `KXMLGUIClient::localXMLFile() const' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x188): undefined reference to `KXMLGUIClient::setComponentData(KComponentData const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x18c): undefined reference to `KXMLGUIClient::setXMLFile(QString const&, bool, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x190): undefined reference to `KXMLGUIClient::setLocalXMLFile(QString const&)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x194): undefined reference to `KXMLGUIClient::setXML(QString const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x198): undefined reference to `KXMLGUIClient::setDOMDocument(QDomDocument const&, bool)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x19c): undefined reference to `KXMLGUIClient::stateChanged(QString const&, KXMLGUIClient::ReverseStateChange)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTC10MainWindow0_13KXmlGuiWindow[vtable for MainWindow]+0x1a0): undefined reference to `KXMLGUIClient::virtual_hook(int, void*)' CMakeFiles/main.cpp.dir/mainwindow.o:(.rodata._ZTI10MainWindow[typeinfo for MainWindow]+0x8): undefined reference to `typeinfo for KXmlGuiWindow' collect2: ld returned 1 exit status make[2]: *** [main.cpp] Error 1 make[1]: *** [CMakeFiles/main.cpp.dir/all] Error 2 make: *** [all] Error 2 [/code] Any extra help with this would be very appreciated. |
![]() Registered Member ![]()
|
[SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Fri May 22, 2009 2:24 am
It worked! Thanks a lot bcooksley for the assistance!
Now I was thinking, because after all, in order to fix it I had to rewrite the whole code, since I wasn't completely sure of how to see and remove those characters. In this case I just rewrote it on 10 minutes, but what if some day I'm working with a big project, I wouldn't just start all over right? :-P So, besides of the fact that I'm already researching about Emacs (yeah, that's the one I use) in order to be able to fix this kind of things in the future, or at least be able to fix them in a more efficient way, how did those characters get there if I wasn't even able to see them? Is there a way to prevent that kinds of things from happening? Thanks again! |
![]() Administrator ![]()
|
RE: [SOLVED] KDE Tutorials - Problem with CMake "Cannot specify link libraries for target"
Fri May 22, 2009 5:44 am
Unfortunately there are usually no automated means of preventing things like this from happening. I have not encountered it myself, although I use Vi/Kate.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]