Bug #462
closedfc_shortcut_popup() has no Q_OBJECT
0%
Description
OpenEmbedded build of S3_1 against Qt-6.8:
| In file included from /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtWidgets/qwidget.h:9, | from /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtWidgets/qdialog.h:8, | from /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtWidgets/QDialog:1, | from ../../../freeciv-3.1.0/client/gui-qt/shortcuts.cpp:20: | /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtCore/qobject.h: In instantiation of 'QList<T> QObject::findChildren(QAnyStringView, Qt::FindChildOptions) const [with T = fc_shortcut_popup*; Qt::FindChildOptions = QFlags<Qt::FindChildOption>]': | /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtCore/qobject.h:184:31: required from 'QList<T> QObject::findChildren(Qt::FindChildOptions) const [with T = fc_shortcut_popup*; Qt::FindChildOptions = QFlags<Qt::FindChildOption>]' | ../../../freeciv-3.1.0/client/gui-qt/shortcuts.cpp:558:47: required from here | /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtCore/qobject.h:167:62: error: static assertion failed: No Q_OBJECT in the class passed to QObject::findChildren | 167 | static_assert(QtPrivate::HasQ_OBJECT_Macro<ObjType>::Value, | | ^~~ | /work/openembedded/amd64/tmp-glibc/work/core2-64-oe-linux/freeciv/3.1.0/recipe-sysroot/usr/include/QtCore/qobject.h:167:62: note: 'QtPrivate::HasQ_OBJECT_Macro<fc_shortcut_popup>::Value' evaluates to false
Files
Updated by Marko Lindqvist 8 months ago
- File 0015-Qt-Add-Q_OBJECT-for-fc_shortcut_popup.patch 0015-Qt-Add-Q_OBJECT-for-fc_shortcut_popup.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
- Target version changed from 3.1.2 to 3.1.1