[PyKDE] PyKDE 3.3.2

Jürg Marti tschortsch at gmx.ch
Fri Aug 9 16:14:01 BST 2002


this is caused by the new version system of qt-3.0.5.

from http://www.trolltech.com/developer/changes/3.0.5.html:
>The version number format of QT_VERSION changed. It is now 0xmmiibb (m = 
>major, i = minor, b = bugfix). Qt 3.0.5's QT_VERSION is 0x030005. 

an easy workaround would be to change the version number of qt in qglobels.h 
to the old format. 

-------------------------patch starts--------------------------------------
--- qglobal.h.orig	Fri Aug  9 16:06:00 2002
+++ qglobal.h	Fri Aug  9 16:08:15 2002
@@ -42,7 +42,7 @@
 /*
    QT_VERSION is ( MAJOR<<16+MINOR<<8+_PATCH)
  */
-#define QT_VERSION 0x030005
+#define QT_VERSION 305

 /*
    The operating system, must be one of: (Q_OS_x)
--------------------------------ends---------------------------------------


On Friday 09 August 2002 13:26, fredrik danerklint wrote:
> Hi!
>
> I run into the following problem:
>
> [root at datorn PyKDE-3.3.2]# python build.py -c
> Building PyKDE 3.3 for Python 2.2.1 on linux2.
> /usr/local/lib/python2.2/site-packages is the PyKDE installation directory.
> /usr/local/include/python2.2 contains Python.h.
> /usr/local/bin/sip will be used as the SIP code generator.
> /usr/local/include/python2.2 contains sipQt.h.
> /usr/local/lib/python2.2/site-packages contains the SIP module.
> /usr/local/qt3 is the Qt base directory.
> /usr/local/qt3/include contains qglobal.h.
> An internal error occured.  Please report all the output from the program,
> including the following traceback, to phil at riverbankcomputing.co.uk.
>
> Traceback (most recent call last):
>   File "build.py", line 1403, in ?
>     main(sys.argv)
>   File "build.py", line 1328, in main
>     installChecks()
>   File "build.py", line 788, in installChecks
>     checkQtDirAndVersion()
>   File "build.py", line 415, in checkQtDirAndVersion
>     qtVersion = int(wl[2])
> ValueError: invalid literal for int(): 0x030005
> [root at datorn PyKDE-3.3.2]#




More information about the PyQt mailing list