[PyKDE] install problem of SIP-20050527 on Mandrake-10.2

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Sun May 29 06:44:18 BST 2005


On Sat, 28 May 2005 16:05:12 +0100
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> On Saturday 28 May 2005 2:54 pm, Gerard Vermeulen wrote:
> > I get:
> >
> > Executing(%build): /bin/sh -e /home/packer/RPM/tmp/rpm-tmp.32284
> > + umask 022
> > + cd /home/packer/RPM/BUILD
> > + cd sip-snapshot-20050527
> > + QTDIR=/usr/lib/qt3
> > + python configure.py -lqt-mt
> > This is SIP snapshot-20050527 for Python 2.4 on linux2.
> > Error: The Qt edition could not be determined by parsing
> > /usr/lib/qt3/include/qconfig.h.
> > error: Bad exit status from /home/packer/RPM/tmp/rpm-tmp.32284 (%build)
> >
> > Reason is that Mandrake-10.2 puts Qt's qconfig.h in another place:
> > /usr/lib/qt3/include/multiarch-i386-linux/qconfig.h
> > and /usr/lib/qt3/include/qconfig.h includes a non-Qt header from
> > /usr/include: -- start header --
> > #define _MULTIARCH_HEADER qconfig.h
> > #include <multiarch-dispatch.h>
> > -- end header --
> >
> > I did not check what you are looking for in qconfig.h but the following
> > C++ program prints LICENSEE and LICENSE:
> >
> > #include <qt.h>
> > #include <stdio.h>
> >
> > int main()
> > {
> >   printf("%s, %s\n", QT_PRODUCT_LICENSEE, QT_PRODUCT_LICENSE);
> > }
> 
> Tonight's snapshot will have a -c flag to allow you to specify the directory 
> containing qconfig.h - untested.
> 
I have to apply the following patch:

[packer at titan BUILD]$ gendiff sip-snapshot-20050528 .gv
--- sip-snapshot-20050528/configure.py.gv       2005-05-29 04:30:12.000000000 +0200
+++ sip-snapshot-20050528/configure.py  2005-05-29 07:39:03.000000000 +0200
@@ -379,7 +379,7 @@
         else:
             qconfigdir = qt_incdir

-        qconfig = os.path.join(qt_incdir, "qconfig.h")
+        qconfig = os.path.join(qconfigdir, "qconfig.h")

         if not os.access(qconfig,os.F_OK):
             siputils.error("qconfig.h could not be found in %s." % qconfigdir)
[packer at titan BUILD]$ 

Gerard




More information about the PyQt mailing list