[PyKDE] Problem compiling PyKDE-3.11alpha7

Jim Bublitz jbublitz at nwinternet.com
Sun May 9 22:12:01 BST 2004


On Saturday May 8 2004 08:49, Radosław Ejsmont wrote:
> Hi !
>
> I have a problem in compiling PyKDE-3.11alpha7.
>
> I have the following source packages obtained and compiled
> before compiling PyKDE-3.11alpha7:
>
> *) qscintilla-1.54-x11-gpl-1.2
> *) PyQt-x11-gpl-3.11
> *) sip-3.10.1
>
> I also have the following versions of dependant packages
> installed:
>
> Qt version is 3.3.2
> KDE version is 3.2.2 (0x30202)
>
> The error returned while compiling:
>
> --- CUT HERE ---
>
> make[1]: Entering directory
> `/usr/src/recent/PyKDE-3.11alpha7/kdecore' g++ -c
> -Wno-deprecated-declarations -pipe -fPIC -O2 -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322
> -I/opt/kde/include -I/usr/include/python2.3
> -I/usr/lib/qt-3.3.2/include -I/usr/X11R6/include -o
> kdecorepart0.o kdecorepart0.cpp
> sip/kdecore/kmacroexpander.sip: In function `int
>    sipConvertTo_QMap_0200QString_0200QStringList(PyObject*,
> QMap<QString, QStringList>**, int*)':
> sip/kdecore/kmacroexpander.sip:218: error: invalid conversion
> from `void**' to `QString**'
> make[1]: *** [kdecorepart0.o] Error 1
> make[1]: Leaving directory
> `/usr/src/recent/PyKDE-3.11alpha7/kdecore' make: *** [all]
> Error 2
>
> --- CUT HERE ---
>
> Any workaround?

Change line 218 in sip/kmacroexpander.sip to either

(what PyKDE-3.11rc1 has):

#if SIP_VERSION >= 0x040000
            sipConvertTo_QString (key, (void **)&sKey, &iserr);
#else
            sipConvertTo_QString (key, &sKey, &iserr);

or


(what the final fix will be):

sKey = reinterpret_cast<QString *>(sipForceConvertTo_QString(key,  
     &iserr));
#endif

You might want to download PyKDE-3.11rc1 - it has some other 
fixes plus complete docs.

Jim




More information about the PyQt mailing list