[Kde-games-devel] KGameRenderer compilation problem

Stefan Majewsky stefan.majewsky at googlemail.com
Sat Apr 21 17:19:05 UTC 2012


On Fri, Apr 20, 2012 at 9:18 AM, Ian Wadham <iandw.au at gmail.com> wrote:
> /kdedev/kdegames/libkdegames/kgamerenderer.cpp:202: error: invalid use of incomplete type ‘struct QVariant’
> /opt/local/include/QtCore/qobject.h:66: error: forward declaration of ‘struct QVariant’

This says that the compiler has only seen a forward declaration, i.e.
"class QVariant;" instead of "class QVariant {...}". So, just as you
already concluded, you're missing the header file which declares
QVariant. I actually wonder why <QVariant> is not included in
<QObject>.

Greetings
Stefan


More information about the kde-games-devel mailing list