Problems compiling PyQt

Luca Fini lfini at arcetri.astro.it
Mon Nov 5 17:00:25 CET 2001


Thak you very much for your reply.

On Mon, 5 Nov 2001, Boudewijn Rempt wrote:

> Luca Fini wrote:
>
> >
> > I'm trying to compile PyQt on RedHat Linux 7.1 (gcc version 2.96 20000731)
> >
>
> Is this the infamous incompatible gcc? (I always forget the version
> numbers.)
>
> > as usually I do:
> >
> > ./configure
> > make
> >
> > And I always get the following errors:
> >
> > qtcmodule.cpp: In function `PyObject *registerClasses (PyObject *,
> > PyObject *)': qtcmodule.cpp:9159: `Rounded' is not a member of type
> > `QTabWidget' qtcmodule.cpp:9160: `Triangular' is not a member of type
> > `QTabWidget' qtcmodule.cpp:10361: `TSCII' is not a member of type `QFont'
> > qtcmodule.cpp:10625: `AccelOverride' is not a member of type `QEvent'
> > qtcmodule.cpp:11251: `WGroupLeader' is not a member of type `Qt'
> >
> >
> > This happens for various versions pf PyQt(2.3,2.4,2.5).
>
> Are sip and PyQt finding the same version of Qt? Aren't you trying to
> compile PyQt against Qt 3.0? (You need one of the recent 3.0 preleases
> for that.)

Well, I've the Qt which comes with RedHat: qt-2.2.0 and I believe is the
only available on my PC. Moreover those seems compilation problems: I
didn't get to linking yet.

The line giving the error is the following: it seems that includes thre
right stuff:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.1
-I/usr/local/include/sip -I/usr/lib/qt-2.2.0/include -I/usr/X11R6/include
-fno-exceptions -O2 -Wp,-MD,.deps/qtcmodule.pp -c  -fPIC -DPIC qtcmodule.cpp
-o qtcmodule.lo


-- 
--------------------------------------------------------------------------
       -- )     Luca Fini                            Tel: +39 055 2752 307
 ___    |\      Osservatorio Astrofisico di Arcetri  Fax: +39 055 2752 292
/   |   | |-_   L.go E.Fermi, 5 +-----------------------------------------
(___|___//___)  50125 Firenze  /   WWW: http://www.arcetri.astro.it/~lfini
 (_)      (_)   Italia        / e-mail: lfini at arcetri.astro.it
-----------------------------+--------------------------------------------




More information about the Python-list mailing list