Trouble compiling PyQT 3.1

Colin Brown cbrown at metservice.com
Thu Aug 15 16:34:44 EDT 2002


Hi Peter

I have recently installed the latest PyQt under Mandarke Linux 8.2 for i586
and ended up doing the following:
----------------------------------------------------------------------------
--------------------------------

Put tmake_1.8.tar.gz into /usr/local
Put sip-3.3.2.tar.gz into /usr/local
Put PyQt_3.3.2.tar.gz into /usr/local

gunzip tmake_1.8.tar.gz
tar -xvf tmake_1.8.tar
gunzip sip-3.3.2.tar.gz
tar -xvf sip-3.3.2.tar.gz
gunzip PyQt_3.3.2.tar.gz
tar -xvf PyQt_3.3.2.tar.gz

TMAKEPATH=/usr/local/tmake_1.8/lib/linux-g++
export TMAKEPATH

cd /usr/local/sip-3.3.2
python build.py -q /usr/lib/qt2 -i /usr/lib/qt2/include -g
/usr/local/tmake_1.8/bin/tmake -l qt-mt
make
make install

cd /usr/local/PyQt_3.3.2
python build.py -q /usr/lib/qt2 -g /usr/local/tmake_1.8/bin/tmake -l qt-mt
make
make install

----------------------------------------------------------------------------
---------------

I hope you find this useful.

There was a compile error that have yet to follow up on to do with glu but
apart from that I
ended up with a pyuic that works okay with output from Qt_Designer except
for the table and
custom widgets. When I get time I will follow up on these.

Cheers
Colin Brown
PyNZ

"P. Roosen" <roosen at vollmer-roosen.de> wrote in message
news:3D5A892C.8000501 at vollmer-roosen.de...
> 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