[PyQt] PyKDE4-4.0.2 release

Detlev Offenbach detlev at die-offenbachs.de
Tue Mar 11 18:39:22 GMT 2008


On Dienstag, 11. März 2008, Detlev Offenbach wrote:
> On Dienstag, 11. März 2008, Jim Bublitz wrote:
> > PyKDE4-4.0.2 is now available at riverbankcomputing.com.
> >
> > It includes some minor fixes to problems that were preventing PyKDE4 from
> > building against KDE 4.0.2, the addition to kdecore of some global
> > functions for retrieving version info about KDE and PyKDE4 (see "Using
> > PyKDE4" in the documentation), and some additional changes to the docs.
> >
> > This release should build against any KDE4 version currently in release.
>
> Hi,
>
> I have another problem compiling latest release with KDE 4.0.2 (s. below).
>
> -----------
>
> g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -Wall -W -D_REENTRANT
> -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde402
> -I/usr/include -I/usr/include/QtCore -I/usr/include/QtGui
> -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/solid
> -I/usr/include/kio -I/usr/include/kfile -I/usr/include/kssl
> -I/usr/include/python2.5 -I/usr/share/qt4/mkspecs/default
> -I/usr/X11R6/include -o sipkioKIOMetaData.o sipkioKIOMetaData.cpp
> sip/kio/global.sip: In function ‘int convertTo_KIO_MetaData(PyObject*,
> void**, int*, PyObject*)’:
> sip/kio/global.sip:242: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for
> argument ‘2’ to ‘int PyDict_Next(PyObject*, Py_ssize_t*, PyObject**,
> PyObject**)’
>
> ------------------------

And here is the fix. Line 242 of sip/kio/global.sip should read.

#if PY_VERSION_HEX >= 0x02050000
	Py_ssize_t pos = 0;
#else
    int pos = 0;
#endif

With that change, PyKDE4 compiles fine.


Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de



More information about the PyQt mailing list