[PyKDE] PyKDE 3.8 compilation error

Gordon Tyler gordon at doxxx.net
Sat Jan 31 06:43:00 GMT 2004


Hi all,

Since KDE 3.1.5 is now in Debian unstable I have finally upgraded from the 
Woody 3.1.4 debs (which were compiled with gcc-2.95) to the Debian unstable 
KDE debs (which are compiled with gcc3). This allows me to use Ricardo's 
python-qt3, etc. debs.

So I have the 3.8 version of the python-qt3, etc. debs installed from Debian 
unstable and I'm trying to compile PyKDE 3.8 and it complains about a parse 
error in qtmod.sip.

Here's the full build output:

###
gordon at ichansan:~/downloads/python/pykde/PyKDE-3.8.0$ python2.3 build.py 
-k /usr -s /usr/lib/python2.3/site-packages -v /usr/share/sip/qt

Building PyKDE 3.8 on linux2.

Python version is 2.3
Python parent directory is /usr/lib/python2.3
Python library directory is /usr/lib/python2.3/config
Python include directory is /usr/include/python2.3

Home directory is /home/gordon

sip code generator path (sip) is /usr/bin
sip version is 3.8
sip lib directory (libsip*) is /usr/lib/python2.3/site-packages
sip include directory (sipQt.h) is /usr/include/python2.3

Qt3 parent directory is /usr/share/qt3
Qt3 lib directory (libqt-mt.so.3) is /usr/share/qt3/lib
Qt3 include directory (qglobal.h) is /usr/share/qt3/include
Qt version is 3.2.3

PyQt lib directory is /usr/lib/python2.3/site-packages
PyQt lib version is 3.8
PyQt sip files directory is /usr/share/sip/qt
PyQt sip version is 3.8.1

KDE3 parent directory is /usr
KDE3 library directory (libkdecore.so) is /usr/lib
KDE3 include directory (kapplication.h) is /usr/include/kde
build/discover.py:253: FutureWarning: x<<y losing bits or changing sign will 
return a long in Python 2.4 and up
  self.versNum = int (self.major) << 16 + int (self.minor) << 8  + int 
(self.micro)
KDE version is 3.1.5

make program is make
Makefile generator path (qmake) is /usr/share/qt3/bin
Install directory is /usr/lib/python2.3/site-packages

Component versions are compatible (3.8)
Qt thread support is enabled.

Checking to see if the C++ compiler supports -fno-exceptions.
g++ -c -pipe -w -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-fno-exceptions -I/usr/share/qt3/mkspecs/default -I. -I. 
-I/usr/include/python2.3 -I/usr/include/qt3 -I/usr/include/kde 
-I/usr/include/qt3 -o qttest.o qttest.cpp
g++  -o qttest qttest.o   -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext 
-lX11 -lm -lpthread
The C++ compiler supports -fno-exceptions.

rm -f qttest.o
rm -f *~ core *.core
Generating the features file.
g++ -c -pipe -w -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-fno-exceptions -I/usr/share/qt3/mkspecs/default -I. -I. 
-I/usr/include/python2.3 -I/usr/include/qt3 -I/usr/include/kde 
-I/usr/include/qt3 -o qttest.o qttest.cpp
g++  -o qttest qttest.o   -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext 
-lX11 -lm -lpthread
/tmp/tmpW40fN6
Generated the features file.

Generating the Makefile for the pythonize module.
Generating the Makefile for the pythonize/test module.
Generating the Makefile for the pykpanelapplet module.

Generating the C++ source for the dcop module.
sip: /usr/share/sip/qt/qtmod.sip:34: parse error
/usr/bin/sip failed with an exit code of 256.


An internal error occured.  Review the installation documentation or
report all the output from the program, including the traceback,
to the PyKDE mailing list: <pykde at mats.imk.fraunhofer.de>. Thanks.


Traceback (most recent call last):
  File "build.py", line 1038, in ?
    main (sys.argv)
  File "build.py", line 1031, in main
    generateSipLibs (siplibs)
  File "build.py", line 911, in generateSipLibs
    generateSipLib (mod, platformTag, qtTag)
  File "build.py", line 690, in generateSipLib
    runProgram (dis.sipBin.bin, argv)
  File "build.py", line 641, in generateSipLib
    shutil.rmtree (mname)
  File "/usr/lib/python2.3/shutil.py", line 140, in rmtree
    raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 2] No such file or directory removing dcop
###

Line 34 of qtmod.sip says:

###
static unsigned PYQT_VERSION = 0x030801;
###

Any ideas? Are there debs for PyKDE 3.8?

Thanks,
Gordon




More information about the PyQt mailing list