PyQt 3.1 Compilation Problems

Phil Thompson phil at river-bank.demon.co.uk
Sun Apr 28 06:34:41 EDT 2002


James Lamanna wrote:
> 
> I have QT 3.0.3 installed (using a Debian package).
> I've download and compiled libsip.
> However, when I try to compile PyQt-3.1 (for Qt 3.x), I get the
> following error on 'make install':
> 
> /bin/sh ../mkinstalldirs /usr/lib/python2.1/site-packages
>   /usr/bin/install -c -m 644 qt.py /usr/lib/python2.1/site-packages/qt.py
> make  install-data-hook
> make[3]: Entering directory `/home/james/PyQt-3.1/qt'
> (cd /tmp;
> PYTHONPATH=/usr/lib/python2.1/site-packages:/usr/lib/python2.1/site-packages
> /usr/bin/python -c "import qt")
> Traceback (most recent call last):
>    File "<string>", line 1, in ?
>    File "/usr/lib/python2.1/site-packages/qt.py", line 47, in ?
>      import libqtc
> ImportError: /usr/lib/python2.1/site-packages/libqtcmodule.so: undefined
> symbol: metaObject__C9QSGIStyle
> make[3]: *** [install-data-hook] Error 1
> make[3]: Leaving directory `/home/james/PyQt-3.1/qt'
> make[2]: *** [install-data-am] Error 2
> make[2]: Leaving directory `/home/james/PyQt-3.1/qt'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory `/home/james/PyQt-3.1/qt'
> make: *** [install-recursive] Error 1
> 
> Any ideas how this would be resolved?

This is a similar bug in the Mandrake 8.1 Qt package. They removed the
the QSGIStyle and QCDEStyle classes for some reason, but didn't make the
corresponding change to qconfig.h.

Add the following to $QTDIR/include/qconfig.h and try again...

#define	QT_NO_STYLE_SGI
#define QT_NO_STYLE_CDE

Phil





More information about the Python-list mailing list