<html><head></head><body>Hi Bas, <br><br>Maybe it can help you ? <br><br><a href="https://github.com/Lankaster/qt5-openwrt">https://github.com/Lankaster/qt5-openwrt</a><br><br><a href="https://github.com/petrov-adg/qt5-openwrt">https://github.com/petrov-adg/qt5-openwrt</a><br><br>Best regards<br>Yaro<br><br><div class="gmail_quote">Am 13. September 2019 12:39:02 MESZ schrieb Bas Mevissen <abuse@basmevissen.nl>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Hi all,<br><br>I'm trying to configure my openwrt project with xconfig. This fails with <br>the errors pasted to <a href="https://pastebin.com/LJvsAhab">https://pastebin.com/LJvsAhab</a> (too long to add, <br>summary below).<br><br>System is Mint 9.2 (Ubuntu Bionic based) with relevant Qt5 stuff <br>installed, including libqt5* (I installed all of them...) and qtbase5-dev.<br><br>I used OpenWrt latest master, head of openwrt_19.07 branch and v18.06.4 <br>with the same result. I tried to figure out whether the configuration <br>did function as designed:<br><br>(from scripts/config/Makefile)<br><br>$ pkg-config --exists Qt5Core && echo Ok<br>Ok<br><br>$ pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets<br>-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets <br>-I/usr/include/x86_64-linux-gnu/qt5 <br>-I/usr/include/x86_64-linux-gnu/qt5/QtGui <br>-I/usr/include/x86_64-linux-gnu/qt5 <br>-I/usr/include/x86_64-linux-gnu/qt5/QtCore <br>-I/usr/include/x86_64-linux-gnu/qt5<br><br>$ pkg-config --libs Qt5Core Qt5Gui Qt5Widgets<br>-lQt5Widgets -lQt5Gui -lQt5Core<br><br>$ pkg-config --variable=host_bins Qt5Core<br>/usr/lib/qt5/bin<br><br>So it selects Qt5 and finds the required stuff:<br><br>$ cat scripts/config/.tmp_qtcheck<br>KC_QT_CFLAGS=-std=c++11 -fPIC <br>-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets <br>-I/usr/include/x86_64-linux-gnu/qt5 <br>-I/usr/include/x86_64-linux-gnu/qt5/QtGui <br>-I/usr/include/x86_64-linux-gnu/qt5 <br>-I/usr/include/x86_64-linux-gnu/qt5/QtCore <br>-I/usr/include/x86_64-linux-gnu/qt5<br>KC_QT_LIBS=-lQt5Widgets -lQt5Gui -lQt5Core<br>KC_QT_MOC=/usr/lib/qt5/bin/moc<br><br>$ gcc --version<br>gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0<br>Copyright (C) 2017 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions. There is <br>NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR <br>PURPOSE.<br><br>So it seems the configuration goes fine and everything should be available.<br><br>Shortened version of the error:<br><br>make[1]: Entering directory <br>'/home/bas/Workspace/playground/openwrt/scripts/config'<br> CHECK qt<br>qconf.o: In function `ConfigList::metaObject() const':<br>qconf.cc:(.text+0x3ed): undefined reference to <br>`QObjectData::dynamicMetaObject() const'<br>qconf.o: In function `ConfigList::qt_metacast(char const*)':<br>qconf.cc:(.text+0x446): undefined reference to <br>`QTreeWidget::qt_metacast(char const*)'<br>qconf.o: In function `ConfigList::qt_metacall(QMetaObject::Call, int, <br>void**)':<br>qconf.cc:(.text+0x474): undefined reference to <br>`QTreeWidget::qt_metacall(QMetaObject::Call, int, void**)'<br>qconf.o: In function `ConfigList::menuChanged(menu*)':<br>qconf.cc:(.text+0x522): undefined reference to <br>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'<br>qconf.o: In function `ConfigList::menuSelected(menu*)':<br>qconf.cc:(.text+0x590): undefined reference to <br>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'<br>qconf.o: In function `ConfigList::parentSelected()':<br>qconf.cc:(.text+0x5d1): undefined reference to <br>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'<br>qconf.o: In function `ConfigList::gotFocus(menu*)':<br>qconf.cc:(.text+0x62a): undefined reference to <br>`QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'<br>qconf.o: In function `ConfigLineEdit::metaObject() const':<br>qconf.cc:(.text+0x695): undefined reference to <br>`QObjectData::dynamicMetaObject() const'<br>qconf.o: In function `ConfigLineEdit::qt_metacast(char const*)':<br>qconf.cc:(.text+0x6ee): undefined reference to <br>`QLineEdit::qt_metacast(char const*)'<br>qconf.o: In function `ConfigLineEdit::qt_metacall(QMetaObject::Call, <br>int, void**)':<br>qconf.cc:(.text+0x71c): undefined reference to <br>`QLineEdit::qt_metacall(QMetaObject::Call, int, void**)'<br>qconf.o: In function `ConfigView::metaObject() const':<br>qconf.cc:(.text+0x9f7): undefined reference to <br>`QObjectData::dynamicMetaObject() const'<br>qconf.o: In function `ConfigView::qt_metacast(char const*)':<br>qconf.cc:(.text+0xa50): undefined reference to <br>`QWidget::qt_metacast(char const*)'<br>(...)<br>qconf.o: In function `ConfigList::~ConfigList()':<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x42): <br>undefined reference to `QPalette::~QPalette()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x54): <br>undefined reference to `QPalette::~QPalette()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x66): <br>undefined reference to `QPixmap::~QPixmap()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x78): <br>undefined reference to `QPixmap::~QPixmap()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x8a): <br>undefined reference to `QPixmap::~QPixmap()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0x9c): <br>undefined reference to `QPixmap::~QPixmap()'<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0xae): <br>undefined reference to `QPixmap::~QPixmap()'<br>qconf.o:qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0xc0): <br>more undefined references to `QPixmap::~QPixmap()' follow<br>qconf.o: In function `ConfigList::~ConfigList()':<br>qconf.cc:(.text._ZN10ConfigListD2Ev[_ZN10ConfigListD5Ev]+0xfc): <br>undefined reference to `QTreeWidget::~QTreeWidget()'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x10): <br>undefined reference to `QSettings::metaObject() const'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x18): <br>undefined reference to `QSettings::qt_metacast(char const*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x20): <br>undefined reference to `QSettings::qt_metacall(QMetaObject::Call, int, <br>void**)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x38): <br>undefined reference to `QSettings::event(QEvent*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x40): <br>undefined reference to `QObject::eventFilter(QObject*, QEvent*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x48): <br>undefined reference to `QObject::timerEvent(QTimerEvent*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x50): <br>undefined reference to `QObject::childEvent(QChildEvent*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x58): <br>undefined reference to `QObject::customEvent(QEvent*)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x60): <br>undefined reference to `QObject::connectNotify(QMetaMethod const&)'<br>qconf.o:(.data.rel.ro._ZTV14ConfigSettings[_ZTV14ConfigSettings]+0x68): <br>undefined reference to `QObject::disconnectNotify(QMetaMethod const&)'<br>qconf.o: In function `ConfigSettings::~ConfigSettings()':<br>qconf.cc:(.text._ZN14ConfigSettingsD2Ev[_ZN14ConfigSettingsD5Ev]+0x26): <br>undefined reference to `QSettings::~QSettings()'<br>qconf.o:(.data.rel.ro._ZTI16ConfigMainWindow[_ZTI16ConfigMainWindow]+0x10): <br>undefined reference to `typeinfo for QMainWindow'<br>qconf.o:(.data.rel.ro._ZTI18ConfigSearchWindow[_ZTI18ConfigSearchWindow]+0x10): <br>undefined reference to `typeinfo for QDialog'<br>qconf.o:(.data.rel.ro._ZTI14ConfigInfoView[_ZTI14ConfigInfoView]+0x10): <br>undefined reference to `typeinfo for QTextBrowser'<br>qconf.o:(.data.rel.ro._ZTI10ConfigView[_ZTI10ConfigView]+0x10): <br>undefined reference to `typeinfo for QWidget'<br>qconf.o:(.data.rel.ro._ZTI14ConfigLineEdit[_ZTI14ConfigLineEdit]+0x10): <br>undefined reference to `typeinfo for QLineEdit'<br>qconf.o:(.data.rel.ro._ZTI10ConfigItem[_ZTI10ConfigItem]+0x10): <br>undefined reference to `typeinfo for QTreeWidgetItem'<br>qconf.o:(.data.rel.ro._ZTI10ConfigList[_ZTI10ConfigList]+0x10): <br>undefined reference to `typeinfo for QTreeWidget'<br>qconf.o:(.data.rel.ro._ZTI14ConfigSettings[_ZTI14ConfigSettings]+0x10): <br>undefined reference to `typeinfo for QSettings'<br>collect2: error: ld returned 1 exit status<br>Makefile:45: recipe for target 'qconf' failed<br>make[1]: *** [qconf] Error 1<br>make[1]: Leaving directory <br>'/home/bas/Workspace/playground/openwrt/scripts/config'<br>/home/bas/Workspace/playground/openwrt/include/toplevel.mk:108: recipe <br>for target 'scripts/config/qconf' failed<br>make: *** [scripts/config/qconf] Error 2<br><br>Any help would be welcome.<br><br>Regards,<br><br>Bas.<hr>openwrt-devel mailing list<br>openwrt-devel@lists.openwrt.org<br><a href="https://lists.openwrt.org/mailman/listinfo/openwrt-devel">https://lists.openwrt.org/mailman/listinfo/openwrt-devel</a><br></pre></blockquote></div><br>-- <br>Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.</body></html>