[PyKDE] Compiling siplib

Phil Thompson phil at river-bank.demon.co.uk
Sat Apr 22 12:01:31 BST 2000


Per Wigren wrote:
> 
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -DSIP_QT_SUPPORT -I/usr/include/qt
> -I/usr/X11R6/inc/qtlib.lo
> In file included from qtlib.cpp:16:
> sipQt.moc: In method `void sipProxy::initMetaObject()':
> sipQt.moc:41: implicit declaration of function `int staticMetaObject(...)'
> sipQt.moc: At top level:
> sipQt.moc:45: no `class QString sipProxy::tr(const char *)' member function
> declared in class `sipProxy'
> sipQt.moc: In method `class QString sipProxy::tr(const char *)':
> sipQt.moc:46: `QNonBaseApplication' undeclared (first use this function)
> sipQt.moc:46: (Each undeclared identifier is reported only once
> sipQt.moc:46: for each function it appears in.)
> sipQt.moc:46: parse error before `)'
> sipQt.moc: At top level:
> sipQt.moc:50: no `class QMetaObject * sipProxy::staticMetaObject()' member
> function declared in class `sipProxy'
> sipQt.moc: In method `class QMetaObject * sipProxy::staticMetaObject()':
> sipQt.moc:53: no method `QObject::staticMetaObject'
> sipQt.moc:60: no method `QMetaObject::new_metaobject'
> make[2]: *** [qtlib.lo] Error 1
> make[2]: Leaving directory `/usr/src/temp/pk/sip-0.11.1/siplib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/temp/pk/sip-0.11.1'
> make: *** [all-recursive-am] Error 2
> ---------------
> 
> I'm using gcc 2.95.2 and qt v2.1

staticMetaObject() came in in Qt v2.x.  My guess is you are including
the Qt v1.x header files.

Phil




More information about the PyQt mailing list