[PyKDE] Problems installing and compiling PyQt on Redhat 7

Boudewijn Rempt boud at rempt.xs4all.nl
Mon Mar 26 18:21:18 BST 2001


I'm not familiar with Redhat, but someone who wants to use
my application Kura on that platform has horrible problems 
getting it to run.

Trying to compile PyQt gives the following error:

make  all-recursive
make[1]: Entering directory `/home/files/PyQt-2.2'
Making all in qt
make[2]: Entering directory `/home/files/PyQt-2.2/qt'
c++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/local/include/python2.0 -I/usr/lib/
qt-2.2.0/include  -I/usr/X11R6/include  -fno-exceptions -O2 -c
sip_helper.cpp
/bin/sh ../libtool --mode=link c++ -fno-exceptions -O2  -o sip_helper
sip_helper.o
mkdir .libs
c++ -fno-exceptions -O2 -o sip_helper sip_helper.o
./sip_helper >sipqtVersion.h
c++ -E -I/usr/local/include/python2.0 -I/usr/lib/qt-2.2.0/include  -I/usr/X1
1R6/include -o moc_sipqtProxyqt.h sipqtProxyqt.h
/usr/lib/qt-2.2.0/bin/moc -o sipqtProxyqt.moc moc_sipqtProxyqt.h
/bin/sh ../libtool --mode=compile
++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/local/include/python2.0 -I/usr/lib/q
t-2.2.0/include  -I/usr/X11R6/include  -fno-exceptions -O2 -c qtcmodule.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.0 -I/usr/lib/q
t-2.2.0/include -I/usr/X11R6/include -fno-exceptions -O2 -Wp,-MD,.deps/qtcmo
dule.pp -c  -fPIC -DPIC qtcmodule.cpp -o qtcmodule.lo
In file included from /usr/local/include/python2.0/Python.h:54,
      from /usr/include/sipQt.h:9,
      from sipqtDeclqt.h:39,
      from qtcmodule.cpp:32:
/usr/local/include/python2.0/pyport.h:390:2 #error "LONG_BIT
definition appears wrong for platform (bad gcc config?)."
make[2]: *** [qtcmodule.lo] Error 1
make[2]: Leaving directory `/home/files/PyQt-2.2/qt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/files/PyQt-2.2'
make: *** [all-recursive-am] Error 2

Of course, this is Redhat 7, so the compiler might be to blame. Redhat _has_
RPM's for PyQt: but those are compiled with Python 1.52. Installing either
SuSE or Mandrake rpm's on his system gives the following interesting error:

Traceback (most recent call last):
        File "/home/files/kura/kuraclient/main.py", line 26, in ?
                from qt import *
        File "/usr/lib/python2.0/site-packages/qt.py", line 43, in ?
                import libqtc
ImportErrorL: /usr/lib/python2.0/site-packages/libqtcmodule.so:
        undefined symbol: chunks__C16QCanvasRectangle

Again, because I don't know anything about Redhat, and have heard only horror 
stories about its handling of Qt, I can't help him out. But I really want him
to get up and running with Kura, since he's doing the kind of linguistic 
research I created the application for... Has anyone seen these errors 
before, or does have anyone a foolproof installation method for PyQt on 
Redhat 7?


-- 

Boudewijn Rempt | http://www.valdyas.org




More information about the PyQt mailing list