[PyKDE] PyKDE-3.5-1
Gordon Tyler
gordon at doxxx.net
Sun Apr 6 06:33:01 BST 2003
On April 5, 2003 03:40 am, Jim Bublitz wrote:
> This version requires sip 3.5 and PyQt 3.5.
<snip>
> This version builds against Python from 1.5.2 through 2.2.2
> (haven't tested the 2.3 beta), KDE 2.1.1 through 3.1.1, and Qt 2.3.0
> through 3.1.1.
I'm trying to compile it against sip-x11-gpl-snapshot-20030322 and
PyQt-x11-gpl-snapshot-20030321 on a Debian testing machine with Python 2.2.2,
official KDE3.1.1 packages and Qt packages version 3.1.2-0woody1. I manually
applied the patches to PyQt required to compile it on Debian (the style
stuff). PyQt works fine.
I configured PyKDE with the following command:
$ python2.2 build.py -c -d /usr/local/lib/python2.2/site-packages -e
/usr/local/include/python2.2 -lqt-mt -s
/usr/local/lib/python2.2/site-packages -k /usr -v
~/downloads/python/pyqt/PyQt-x11-gpl-snapshot-20030321/sip
When I run make, I get the following error:
g++ -c -pipe -w -O2 -D_REENTRANT -fPIC -DSIP_MAKE_MODULE_DLL -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -fno-exceptions -I/usr/share/qt3/mkspecs/default -I.
-I../extra/kde311 -I. -I/usr/include/python2.2 -I/usr/local/include/python2.2
-I/usr/include/kde -I/usr/share/qt3/include -o kdecorehuge.o kdecorehuge.cpp
In file included from kdecorehuge.cpp:86:
sip/kprocctrl.sip:75: qlist.h: No such file or directory
My system doesn't have qlist.h but I found it in an old copy of kde3.1-rc6
source and it just includes qptrlist.h. I tried editing sip/kprocctrl.sip to
change the include to use qptrlist.h because it has a define to substitute
QPtrList for QList and that fixed the kprocctrl problem but the compile fails
later on another file that also uses qlist.h:
g++ -c -pipe -w -O2 -D_REENTRANT -fPIC -DSIP_MAKE_MODULE_DLL -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -fno-exceptions -I/usr/share/qt3/mkspecs/default -I.
-I../extra/kde311 -I. -I/usr/include/python2.2 -I/usr/local/include/python2.2
-I/usr/include/kde -I../dcop -I../kdecore -I/usr/share/qt3/include -o
kdeuihuge.o kdeuihuge.cpp
In file included from sipkdeuiKMainWindow.h:32,
from sipkdeuiKDockMainWindow.h:29,
from kdeuihuge.cpp:98:
sip/kmainwindow.sip:163: qlist.h: No such file or directory
In file included from sipkdeuiKListView.h:32,
from kdeuihuge.cpp:126:
sip/klistview.sip:454: qlist.h: No such file or directory
In file included from kdeuihuge.cpp:4581:
sipkdeuiProxykdeui.h:39: qlist.h: No such file or directory
So I checked the kmainwindow.h that's installed in /usr/include/kde and the
memberList member which is being mapped in the sip file is actually declared
as:
static QPtrList<KMainWindow>* memberList;
But the mapped type in the sip file, MainWindowList, is using QList.
I'm changing various references to qlist.h to use qptrlist.h and retrying the
compile. I'll let you know which ones I had to change to make it compile.
Ciao,
Gordon
More information about the PyQt
mailing list