[PyKDE] PyKDE-snapshot20050104 won't build with KDE 3.1.4 and sip
4.2
Jim Bublitz
jbublitz at nwinternet.com
Sun Feb 20 17:27:00 GMT 2005
On Sunday 20 February 2005 04:47, Hans-Peter Jansen wrote:
> Hi Jim, hi Phil,
>
> I've been catched on a SuSE 9.0 system during PyKDE build by this
> error:
> Generating the C++ source for the kio module...
> sip: KFileMimeTypeInfo::Unit is undefined
> Error: Unable to create the C++ code.
>
> Looking into sip/kio/kfilemetainfo.sip doesn't reveal an immediate
> obvious reason for this, thus I'm asking here.
KFileMimeTypeInfo::Unit is an enum which is versioned incorrectly. In the sip
file it's only defined for KDE >= 3.3.0. To correct the versioning, it would
be necessary to back through the various KDE versions, because enumerators
were added in later versions.
HOWEVER, the only places it's referenced in PyKDE is in two typedefs in the
same file, and neither of the typedef'd types appear to be referenced
anywhere else.
The easiest fix would be to comment out the two typedefs as shown:
class KFileMetaInfoItem
{
...
// typedef KFileMimeTypeInfo::Unit Unit;
class KFileMetaInfo
{
...
// typedef KFileMimeTypeInfo::Unit Unit;
You could also comment out the entire Unit enum, although that shouldn't be
necessary.
This error actually goes back quite a few PyKDE versions and for some reason
has never shown up in testing against older KDE versions before.
Jim
More information about the PyQt
mailing list