[PyKDE] PyKDE-3.7-4 Release
Hans-Peter Jansen
hpj at urpla.net
Sat Aug 16 01:36:01 BST 2003
Hi Gordon,
On Friday 15 August 2003 20:25, Gordon Tyler wrote:
> python 2.2 installed into /usr (deb package), sip 3.7 and pyqt 3.7
> installed into /usr/local.
>
> When I ran the PyKDE build.py I got the following error:
>
> ldd: /usr/lib/python2.2/site-packages/libqtcmodule.so: No such file
> or directory
> Can't determine if PyQt uses libqt-mt
> *********************************************************************
>********* Error: PyQt linked to Qt lib which is incompatible with KDE
> version (threading)
> -- from line 664 in build.py
> *********************************************************************
>*********
>
> It was looking for the PyQt modules in the python 2.2 standard
> site-packages directory instead of the /usr/local location which I
> had specified with the -d option to the PyKDE build.py. So I changed
> the PyKDE build.py on line 658, to use modDir instead of
> platPySiteDir and that seemed to work.
>
> This changes the assumption that PyQt is installed in the standard
> python site-packages directory, into the assumption that PyQt is
> installed in the location where you are going to install PyKDE. IMHO,
> that is a better assumption to make unless you want to add another
> option for the location of the PyQt modules.
Looks, like you suffer from the same problem, Jonathan addressed with
his patch send to the list on 08/08.
I think, that expecting sip and PyQt in the same location is a
reasonable assumption, but Jonathan's patch won't apply anymore,
therefore I propose the following patch:
--- build.py.orig 2003-08-16 01:04:59.000000000 +0200
+++ build.py 2003-08-16 01:12:56.000000000 +0200
@@ -130,9 +130,9 @@
print " -p dir the name of the SIP code generator [default sip]"
print " -q dir the Qt base directory [default %s]" % (platQTDIRName)
print " -r dir the directory containing the Qt library [default %s%slib]" % (platQTDIRName,os.sep)
- print " -s dir the directory containing the SIP module"
- print " -t dir the directory containing the Python library directories [default %s]\n" % (platPyLibDir)
- print " -v dir the directory containing the PyQt sip files [default %s]" % (pyQtSipDir)
+ print " -s dir the directory containing the SIP and PyQt modules"
+ print " -t dir the directory containing the Python library directories [default %s]" % (platPyLibDir)
+ print " -v dir the directory containing the PyQt sip files\n"
print " -z file the name of a file containing command line flags"
sys.exit(rcode)
@@ -655,7 +655,10 @@
def checkThreading ():
- qtmodlib = platPySiteDir + '/libqtcmodule.so'
+ """ Check, if PyQt lib is linked with a KDE compatible Qt lib
+ """
+ # assume the PyQt libs lives in the same dir as the sip libs
+ qtmodlib = sipModuleDir + '/libqtcmodule.so'
os.system ('ldd %s > lddtmp' % (qtmodlib))
f = open ('lddtmp', 'r')
I cannot think of any adverse effects from this change, Jim.
Gordon, Jonathan, you may want to test this, and tell us, if it
solves your problems?
Pete
P.S.: Jim, 3.7-4 builds smoothly with and without this patch! \o/
Hopefully I get around trying to build on top of current
sip/PyQt snapshots tomorrow.
More information about the PyQt
mailing list