[PyKDE] Problems installing and compiling PyQt on Redhat 7

Gerard Vermeulen gvermeul at labs.polycnrs-gre.fr
Tue Mar 27 12:51:28 BST 2001


Boudewijn,

I am not a Red Hat user (anymore), but maybe I can help:

(1) Since there is an include flag -I/usr/local/include/python2.0,
I conclude that this is not a standard RedHat package.
Check out if they have a python-2.0*.rpm

(2) Look at http://www.python.org/cgi-bin/moinmoin/FrequentlyAskedQuestions
There is help on Red Hat 7.0 compiler issues (you also need to upgrade glibc).

> 
> 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
>

(3) This is normal because Red Hat's compiler has a different binary C++ api,
so you can't mix Mandrake-7.2 and Red Hat-7.0 C++ libraries. 

>
> 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
> 
-- 
Gerard Vermeulen                           |  TEL: 33 (0)4 76 88 12 53
CRTBT                                      |   or  33 (0)4 76 88 12 61
BP 166 -- 38042 Grenoble Cedex 9 -- France |  Fax: 33 (0)4 76 87 50 60
http://www-crtbt.polycnrs-gre.fr/he3pol




More information about the PyQt mailing list