[PyKDE] PyKDE 3.11-alpha6 with sip4

Torsten Marek shlomme at gmx.net
Sun Apr 25 22:05:01 BST 2004


Part II (I just repost my mail because I it legally belongs here):

Overview:
-dcop:
     no problems

-kdecore:
     fixx11h.h stuff (might be Debian specific), but the abstract 
functions compile now (Thanks for the fast reaction, Phil!)

-kdesu:
     no problems

-kdefx:
     sipkdefxKImageEffects does not include sipqtQBrush.h and 
sipqtQRegion.h, which are both generated by sip4

-kdeui:
     can be build (although my g++ refuses to compile it in one piece - 
105 lines are hard to swallow), but cannot be imported into Python. 
Error message was:
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: Cannot create a consistent method resolution
order (MRO) for bases qt.QPaintDevice, qt.Qt

-kio:
     refuses to build at first, problems are in %VirtualCatcherCode in 
kfilterdev.sip (I already changed a1 to a0 for it to compile)
sip/kio/kfilterdev.sip: In function `PyObject* 
sipVH_kio_45(PyGILState_STATE,
    PyObject*, long unsigned int)':
sip/kio/kfilterdev.sip:109: error: invalid conversion from `long int' to `
    PyObject*'
sip/kio/kfilterdev.sip:117: error: invalid conversion from `long 
unsigned int'
    to `void*'
sip/kio/kfilterdev.sip:118: error: invalid conversion from `int' to 
`PyObject*'
I circumvented these by commenting out the lines, errors continue.

Workarounds are:
kio/kurifiltersip:83: sipThisObj -> sipSelf (is argument conversion 
superfluous in hand-written code?)

sip-generated Code:
meth_KURIFilterData_init:
add (KURL*) to
const KURL * a0 = &QString::null;

Finally, there is a call to a wrong sipVH function.
In "long sipKFilterDev::readLine(char * a0,unsigned long a1)",
"long sipVH_kio_45(sip_gilstate_t,PyObject *,unsigned long)", and they 
parameter lists do not match. I do not know how to handle this, thus I 
pass the torch to Phil.


If somebody wants to have binaries of the modules are generated code, I 
can put them on the web (kdeui.so is 10MiB with symbols stripped, so you 
might not want to have it emailed;-).


greetings

Torsten
-- 
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146  894C 7CC5 451E A244 C858
www.keyserver.net -- wwwkeys.eu.pgp.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20040425/65c9357f/signature.bin


More information about the PyQt mailing list