[PyKDE] Compiling PyKDE 3.11.3 on Solaris 8 fails

Holger Joukl Holger.Joukl at LBBW.de
Tue Mar 1 12:43:28 GMT 2005


Pete wrote:
>>>
On Tuesday 01 March 2005 12:07, Holger Joukl wrote:
> I think the problem is
>
> sipkdecorepart0.cpp: In function `struct PyObject *
> meth_KStartupInfoData_pids(PyObject *, PyObject *)':
> sipkdecorepart0.cpp:48629: type `const QValueList<int>' is not a
> base type for type `const QValueList<long int>'
>
> which seems to result from how the KStartupInfo::pids method is
> defined in PyKDE-3.11.3/sip/kdecore/kstartupinfo.sip:
> 207  public:
> 208  //force
> 209      const QValueList<int>& pids () const;
> 210  //end
> 211
> 212  };  // class KStartupInfoData
> The actual KDE method signature is "const QValueList< pid_t >&
> pids() const;", and pid_t is typedef´ed to long
> on my machine.
> int and long are the same for 32bit
> I guess I
> a) could remove the method from kstartupinfo.sip
> b) Modifiy the generated code and cast

Why not modify the method to return the matching type in
kstartupinfo.sip, aka:

209      const QValueList<long int>& pids () const;

and let us know, if that helped.

Cheers,
Pete
<<<

Thanks Pete,
I tried the following:
1.
209      const QValueList<long int>& pids () const;
gives me
...
Generating the C++ source for the kdecore module...
sip: sip/kdecore/kstartupinfo.sip:209: syntax error
Error: Unable to create the C++ code.
...

2.
209      const QValueList<long>& pids () const;
gives me
...
Generating the C++ source for the kdecore module...
sip: KStartupInfoData::pids() unsupported function return type - provide
%MethodCode and a C++ signature
Error: Unable to create the C++ code.
...

3.
209      const QValueList<pid_t>& pids () const;
gives me
...
Generating the C++ source for the kdecore module...
sip: KStartupInfoData::pids() unsupported function return type - provide
%MethodCode and a C++ signature
Error: Unable to create the C++ code.

==> This does not work. Guess there is probably a place where I would have
to "register" QValueList<long>?

Btw, it also failed with PyKDE-snapshot20050104.

Regards,
Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this  e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail.  Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.




More information about the PyQt mailing list