[PyKDE] Problems in building PyKDE-3.5-2

Phil Thompson phil at river-bank.demon.co.uk
Wed Apr 16 13:18:00 BST 2003


On Wednesday 16 April 2003 11:56 am, Mateusz Korniak wrote:
> Thank You for yours answer,Jim
>
> On Tuesday 15 of April 2003 17:50, you wrote:
> > Or you can use PyKDE with the recent PyQt/sip snapshots if you do
> > the following to PyKDE:
> >
> > 1. grep the sip files for "sipName":
> >     grep sipName .../sip/*.sip
> > There are only 7 occurances
> > 2. Replace all occurances of "sipName_module_something" with
> > "sipName_something". For example
> > sipBadVirtualResultType(sipName_kdeui_KDateValidator,
> >     sipName_kdeui_validate);
> > becomes:
> > sipBadVirtualResultType(sipName_KDateValidator, sipName_validate);
>
> Following Yous description I patched source so my sip dir looks like:
>
> [matkor at appserver ~/rpm/BUILD/PyKDE-3.5-2/sip]$ grep sipName *.sip
> kdatetbl.sip:
> sipBadVirtualResultType(sipName_KDateValidator,sipName_validate);
> klistview.sip:
> sipBadVirtualResultType(sipName_KListView,sipName_findDrop);
> knumvalidator.sip:
> sipBadVirtualResultType(sipName_KIntValidator,sipName_validate);
> knumvalidator.sip:
> sipBadVirtualResultType(sipName_KFloatValidator,sipName_validate);
> knumvalidator.sip:
> sipBadVirtualResultType(sipName_KDoubleValidator,sipName_validate);
> kstringvalidator.sip:
> sipBadVirtualResultType(sipName_KStringListValidator,sipName_validate);
> kstringvalidator.sip:
> sipBadVirtualResultType(sipName_KMimeTypeValidator,sipName_validate);
>
> > 3. Build as usual
>
> Unfortunetly, problem some problems left* :/
> In meantime I'll try solve problem as Phil Thompson suggested (using
> release versions of sip an little modified release version of PyQt ).
>
> (*) All _compile_ problems:
> g++ -c -pipe -w -O2 -march=i686 -D_REENTRANT -fPIC  -DSIP_MAKE_MODULE_DLL
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -fno-exceptions
> -I/usr/X11R6/share/qt/mkspecs/default -I. -I../extra/kde311 -I.
> -I/usr/include/python2.2 -I/usr/X11R6/include/qt -I/usr/X11R6/include
> -I/usr/X11R6/include/qt -o sipkdecoreKCmdLineArgs.o
> sipkdecoreKCmdLineArgs.cpp
> sip/kcmdlineargs.sip: In function `struct PyObject *
> sipDo_KCmdLineArgs_init(PyObject *, PyObject *)':
> sip/kcmdlineargs.sip:74: implicit declaration of function `int
> PyQtPyArgvToC(...)'
> sip/kcmdlineargs.sip:74: assignment to `char **' from `int' lacks a cast
> sip/kcmdlineargs.sip:86: implicit declaration of function `int
> PyQtUpdatePyArgv(...)'
> sip/kcmdlineargs.sip:111: assignment to `char **' from `int' lacks a cast
> make[1]: *** [sipkdecoreKCmdLineArgs.o] Błąd 1
> make[1]: Opuszczam katalog
> `/home/users/matkor/rpm/BUILD/PyKDE-3.5-2/kdecore'

Yes - more than the sipName changes are needed.

Jim - you are trying to use %ExportedCode from PyQt which has been removed 
(for SIP v4 compatibility). Just cut and paste the relevant code - see the 
current PyQt.

Phil




More information about the PyQt mailing list