[PyKDE] Compiling PyKDE 3.11.3 on Solaris 8 fails

Jim Bublitz jbublitz at nwinternet.com
Tue Mar 1 17:02:12 GMT 2005


On Tuesday 01 March 2005 04:43, Holger Joukl wrote:

> > 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

Sorry - I don't have your original msg yet (my mail system delays some mail 
from "unknown" senders), but it looks like the relevant info is in Pete's 
responses.

Your analysis of the problem is probably correct (sizeof(int) == sizeof(long) 
on 32 bit machines). (a) is the only simple fix you can implement. You could 
do (b), but it takes some familiarity with sip %MappedType coding.

I'll have to trace back through the pid_t related code and see if this is 
fixable. It should be, but will require a little extra handwritten code. sip 
doesn't support template types automatically, so each new type requires a 
small amount of C++ code.

I'll let you know what I find out. I expect to release a snapshot in a day or 
two.

Just in case I might need it, is there someway for configure.py to figure out 
it's running Solaris (eg an /etc/Solaris-release file or something similar)?

Jim




More information about the PyQt mailing list