[PyKDE] Problems compiling PyQt for Qt 2.x

Greg Fortune gfortune at linuxteams.com
Wed Jun 28 02:44:26 BST 2000

Hi, I've been trying to get PyQt 0.12 to compile for Qt2 (2.1.0, to be 
exact), and I haven't met with much luck. I changed the Makefile to 
point at the Qt2 headers, but I get these errors:

In file included from qtcmodule.cpp:2611:
sipqtProxyqt.moc:45: new declaration `static void 
sipqtProxyqt.h:9: ambiguates old declaration `static class QMetaObject 
* sipProxyqt::staticMetaObject()'

sipqtProxyqt.moc: In function `void 
__static_initialization_and_destruction_0(int, int)':
sipqtProxyqt.moc:29: no matching function for call to 
`QMetaObjectInit::QMetaObjectInit (QMetaObject * (*)())'
/usr/lib/qt2/include/qmetaobject.h:224: candidates are: 
QMetaObjectInit::QMetaObjectInit(void (*)())
QMetaObjectInit::QMetaObjectInit(const QMetaObjectInit &)

I've tried to somehow rid myself of one of those declarations, but I 
succeeded in little more than managing to remove declarations 
necessary in other parts of the code.  Any attempt to circumvent these 
pieces of code naturally results in an undefined symbol at run-time.  
Any suggestions or advice would be greatly appreciated.  Thanks.

- Dan Haffey
dhaffey at linuxteams.com

P.S.  gfortune is listed `cause we are having problems with SMTP right 

More information about the PyQt mailing list