[Kde-games-devel] Re: KGameRenderer compile fails on Mac OS X

Stefan Majewsky stefan.majewsky at googlemail.com
Mon Jul 25 15:45:10 CEST 2011


Hi,

I think this is https://bugs.kde.org/show_bug.cgi?id=261488

The qHash function for QColor is at kgamerenderer.h:34-40. Otherwise
it would not have compiled on Linux gcc. I am absolutely puzzled why
the Mac C++ compiler rejects it. (Judging from the error messages, it
seems to be gcc. Could you verify that?)

Could you try to:

1. insert "typedef QHash<QColor, QColor> QColorHash" before the
KGameRenderer class (after the qHash stuff) and replace usages
accordingly and see if that helps?
2. explicitly instantiate the template by putting "template class
QHash<QColor, QColor>;" before the KGameRenderer class (after the
qHash stuff) and see if that helps or how the error messages change?

Greetings
Stefan


More information about the kde-games-devel mailing list