[Kde-games-devel] KGameRenderer compilation problem

Ian Wadham iandw.au at gmail.com
Sat Apr 21 10:36:42 UTC 2012


On 20/04/2012, at 5:18 PM, Ian Wadham wrote:

> After svn update of kdegames I get the following compilation error in KGameRenderer:
> 
> /kdedev/kdegames/libkdegames/kgamerenderer.cpp: In member function ‘bool KGameRendererPrivate::setTheme(const KgTheme*)’:
> /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’
> /kdedev/kdegames/libkdegames/kgamerenderer.cpp:202: error: expected primary-expression before ‘>’ token
> /kdedev/kdegames/libkdegames/kgamerenderer.cpp:202: error: expected primary-expression before ‘)’ token
> make[2]: *** [libkdegames/CMakeFiles/kdegames.dir/kgamerenderer.o] Error 1
> make[1]: *** [libkdegames/CMakeFiles/kdegames.dir/all] Error 2
> 
> Lines 199-203 of  kdegames/libkdegames/kgamerenderer.cpp read:
>                //check timestamp of cache vs. last write access to theme/SVG
>                const uint svgTimestamp = qMax(
>                        QFileInfo(theme->graphicsPath()).lastModified().toTime_t(),
>                        theme->property("_k_themeDescTimestamp").value<uint>()
>                );

The attached patch fixes it.

Cheers, Ian W.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: KGameRenderer.patch
Type: application/octet-stream
Size: 423 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20120421/71353ccf/attachment.obj>


More information about the kde-games-devel mailing list