[PyKDE] Problems in building PyKDE-3.5-2

Mateusz Korniak mateusz at ant.gliwice.pl
Wed Apr 16 12:57:01 BST 2003


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'

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../dcop -I../kdecore -I/usr/X11R6/include/qt -o sipkdeuiQXEmbed.o 
sipkdeuiQXEmbed.cpp
sip/qxembed.sip: In function `struct PyObject * 
sipDo_QXEmbed_processClientCmdline(PyObject *, PyObject *)':
sip/qxembed.sip:68: implicit declaration of function `int PyQtPyArgvToC(...)'
sip/qxembed.sip:68: assignment to `char **' from `int' lacks a cast
sip/qxembed.sip:80: implicit declaration of function `int 
PyQtUpdatePyArgv(...)'
make[1]: *** [sipkdeuiQXEmbed.o] Błąd 1
make[1]: Opuszczam katalog `/home/users/matkor/rpm/BUILD/PyKDE-3.5-2/kdeui'

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/kparts -I/usr/X11R6/include/kio -I../kdecore -I../kio 
-I/usr/X11R6/include/qt -o sipkpartsKPartsMainWindow.o 
sipkpartsKPartsMainWindow.cpp
sipkpartsKPartsMainWindow.cpp: In method `void 
sipKParts_MainWindow::setInstance(KInstance *)':
sipkpartsKPartsMainWindow.cpp:128: no matching function for call to 
`sipKParts_PartBase::sipVH_setInstance (sipMethodCache *, sipThisType *&, 
KInstance *&)'
sipkpartsKPartsPartBase.h:59: candidates are: static void 
sipKParts_PartBase::sipVH_setInstance(const sipMethodCache *, sipThisType *, 
KInstance *, bool)
make[1]: *** [sipkpartsKPartsMainWindow.o] Błąd 1
make[1]: Opuszczam katalog `/home/users/matkor/rpm/BUILD/PyKDE-3.5-2/kparts'
-- 
Mateusz Korniak
easy.com  easy.go




More information about the PyQt mailing list