[PyKDE] Compilation problems
Jan Ekholm
chakie at infa.abo.fi
Thu Aug 30 17:30:27 BST 2001
Hi all,
I've been using PyQt for a few months now on RedHat boxes without any
problems. However I installed Debian Woody on my main machine at home a
few days ago and have some problems getting PyQt working again. "sip"
works fine, I think. At least version 2.4 was available as a Debian
package and installed ok.
I tried to compile PyQt-2.5 for the source tar.gz, the one for Qt 2.3.0
but haven't been able to get it through the compiler yet. I configure it
like this as Debian still has Python 1.5.2 as "python":
% ./configure --with-python=/usr/bin/python2
Works fine. When actually make:ing it I get (slightly edited):
% make
....
make[2]: Entering directory `/usr/src/PyQt-2.5/qt'
/bin/sh ../libtool --mode=compile g++ -O -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/python2.0 -I/usr/include/sip -I/usr/include/qt
-I/usr/X11R6/include -fno-exceptions -O2 -c qtcmodule.cpp
g++ -O -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.0
-I/usr/include/sip -I/usr/include/qt -I/usr/X11R6/include
-fno-exceptions -O2 -c qtcmodule.cpp -fPIC -DPIC -o qtcmodule.lo
qtcmodule.cpp: In method `void sipProxyqt::proxySlot(QAction *)':
qtcmodule.cpp:4283: `sipSender' undeclared (first use this function)
qtcmodule.cpp:4283: (Each undeclared identifier is reported only once
qtcmodule.cpp:4283: for each function it appears in.)
qtcmodule.cpp: At top level:
qtcmodule.cpp:6095: excess elements in aggregate initializer
qtcmodule.cpp:6095: excess elements in aggregate initializer
...
There are maybe a hundred of the "excess elements" errors after those two
lines and then the compilation fails.
c++ is version 2.95.4. I know I've compiled PyQt-2.4 earlier on a Woody
without any major problems. Should I use 2.4 instead? I'd appreciate any
hints or help.
Regards,
Jan Ekholm
-----------------------------------------------------------------------------
Real children don't go hoppity-skip unless they are on drugs.
-- Susan Sto Helit, in Hogfather (Terry Pratchett)
More information about the PyQt
mailing list