[PyKDE] make errors
Phil Thompson
phil at river-bank.demon.co.uk
Thu Nov 9 10:52:44 GMT 2000
M K wrote:
>
> Hi all,
>
> I can't get the sources from the web page nor the latest CVS files for PyQt to
> compile. I keep getting the error:
>
> /bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.0 -I/usr/local/include/sip -I/usr/lib/qt/include -I/usr/X11R6/include -fno-exceptions -O2 -c sipqtQString.cpp
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.0 -I/usr/local/include/sip -I/usr/lib/qt/include -I/usr/X11R6/include -fno-exceptions -O2 -Wp,-MD,.deps/sipqtQString.pp -c -fPIC -DPIC sipqtQString.cpp -o sipqtQString.lo
> qstring.sip: In function `struct PyObject * sip__str__QString(struct PyObject *)':
> qstring.sip:617: `ptr' undeclared (first use this function)
> qstring.sip:617: (Each undeclared identifier is reported only once
> qstring.sip:617: for each function it appears in.)
> make[2]: *** [sipqtQString.lo] Error 1
> make[2]: Leaving directory `/home/mark/dev/PyQt-2.2/PyQt/PyQt/qt'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mark/dev/PyQt-2.2/PyQt/PyQt'
> make: *** [all-recursive-am] Error 2
Sorry, poor testing on my part. Change line 3841 of sipqtQString.cpp
from "const char *s = *ptr" to "const char *s".
The fix has been applied to CVS.
This problem only applies if you are using Qt 1.x.
Phil
More information about the PyQt
mailing list