Project

General

Profile

Actions

Bug #462

closed

fc_shortcut_popup() has no Q_OBJECT

Added by Marko Lindqvist 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Qt-client
Target version:
Start date:
04/17/2024
Due date:
% Done:

0%

Estimated time:

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

Actions

Also available in: Atom PDF