Trouble compiling PyQT 3.1

P. Roosen roosen at vollmer-roosen.de
Wed Aug 14 12:45:32 EDT 2002


Hello,

being intrigued by the GUI discussion (also as on google) I'd like to 
start with PyQT 3.1

After ./configure-ing with

./configure --with-sip-includes=/usr/include/sip 
--with-sip-module=/usr/lib --with-qt-includes=/usr/lib/qt2/include 
--with-qt-libraries=/usr/lib/qt2/lib

which runs cleanly and does not produce any noticable error, I am 
confronted with

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.2 
-I/usr/include/sip -I/usr/lib/qt2/include -I/usr/X11R6/include 
-fno-exceptions -O2 -c qtcmodule.cpp  -fPIC -DPIC -o qtcmodule.lo
In file included from sipqtQPixmap.h:42,
                  from sipqtQBitmap.h:42,
                  from sipqtQCursor.h:42,
                  from sipqtQt.h:42,
                  from qtcmodule.cpp:37:
sipqtQPaintDevice.h:45: syntax error before `;'
In file included from sipqtQPixmap.h:44,
                  from sipqtQBitmap.h:42,
                  from sipqtQCursor.h:42,
                  from sipqtQt.h:42,
                  from qtcmodule.cpp:37:
sipqtQSize.h:45: syntax error before `;'
....
  .
  . (tons of this kind of stuff following...)
  .
....
qtcmodule.cpp:5761: `sipClassAttrTab_QPen' was not declared in this scope
qtcmodule.cpp:5762: `sipClassAttrTab_Qt' was not declared in this scope
qtcmodule.cpp:5763: excess elements in aggregate initializer
qtcmodule.cpp:5768: initialization to `char *' from `int' lacks a cast
qtcmodule.cpp:5768: initialization to `int' from `sipClassDef *' lacks a 
cast
qtcmodule.cpp: In function `struct PyObject * initModule(PyObject *, 
PyObject *)':
/usr/include/sip/sip.h:302: too many arguments to function `int 
sipRegisterModule(sipModuleDef *)'
qtcmodule.cpp:5795: at this point in file
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:259: candidates are: 
QMetaObjectInit::QMetaObjectInit(void (*)())
/usr/lib/qt2/include/qmetaobject.h:261: 
QMetaObjectInit::QMetaObjectInit(const QMetaObjectInit &)
make[2]: *** [qtcmodule.lo] Error 1
make[2]: Leaving directory 
`/daten/Downloads/Programmieren/Python/PyQt-3.1/qt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/daten/Downloads/Programmieren/Python/PyQt-3.1'
make: *** [all] Error 2


I don't understand what is going on, as I (guess I) obtained everything 
that should be necessary for the PyQT3.1-2.3.1 version of the GUI 
wrapper to build.

Any pointers?

Regards,
		Peter

-- 
goethe GbR                        Vollmer & Roosen GbR
http://www.goethe-gbr.de          http://www.linguadapt.de
Tel. ++49 241 7091525             Tel. ++49 2451 971437
Fax  ++49 241 7091521             Fax  ++49 2451 971439
GPS: 50.7383 N, 6.0427 E




More information about the Python-list mailing list