[PyQt] Re: [PyKDE] Error while building: error: 'rindex' is not a
member of 'X'
Jim Bublitz
jbublitz at nwinternet.com
Sat Mar 8 18:27:31 GMT 2008
On Saturday 08 March 2008 09:44, Adeodato Simó wrote:
> Hello Jim.
>
> I get the following error when building your tarball:
>
> sipkdeuipart0.cpp: In function ‘PyObject* meth_X_rindex(PyObject*,
> PyObject*)’: sipkdeuipart0.cpp:232714: error: ‘rindex’ is not a member of
> ‘X’
> sipkdeuipart0.cpp: In function ‘PyObject* meth_X_Xrindex(PyObject*,
> PyObject*)’: sipkdeuipart0.cpp:232748: error: ‘Xrindex’ is not a member of
> ‘X’
> sipkdeuipart0.cpp: In function ‘PyObject* meth_X_index(PyObject*,
> PyObject*)’: sipkdeuipart0.cpp:232782: error: ‘index’ is not a member of
> ‘X’
> sipkdeuipart0.cpp: In function ‘PyObject* meth_X_Xindex(PyObject*,
> PyObject*)’: sipkdeuipart0.cpp:232816: error: ‘Xindex’ is not a member of
> ‘X’
> make[1]: *** [sipkdeuipart0.o] Error 1
>
> Any hints?
A couple of things which should work - either:
a) edit sip/kdeui/kdeuimod.sip.in and comment out
//%Include fixx11.sip
or:
b) duplicate sip/kdeui/kdeui-kde400.diff as kdeui-kde401.diff (does the same
thing as (a)). Or -kde402 as needed.
It may be a problem with includes when compiling, but I couldn't get fixx11.h
to work either and it seems most people can get by without it.
Sorry for all the problems you're running into. You can save a little time by
using:
python configure.py -lkdeui or -lkdeui:
(The switch is a lower case L)
That will only regenerate the .cpp files for kdeui (or kdeui and succeeding
modules with the ':') and save a lot of sip and gcc time.
Jim
More information about the PyQt
mailing list