[PyQt] PyQt installation

Pablo Campomanes pblcampomanes at gmail.com
Wed Mar 16 09:21:33 GMT 2011


Dear all,

I am trying to install the latest stable version of PyQt in my computer (Red
Hat Enterprise Linux 5).

First, I installed SIP from source code (sip-4.12.1.tar.gz) in a
non-standard folder (/software/sip-4.12.1) using the following protocol
based on configure, make and make install:

---------------------------------------------------------------------------------------------------------------------------------------------------
python configure.py --bindir /software/sip-4.12.1/ \
--destdir /software/sip-4.12.1 --incdir /software/sip-4.12.1/ \
--sipdir /software/sip-4.12.1/ --static

This is SIP 4.12.1 for Python 2.4.3 on linux2.
The SIP code generator will be installed in /software/sip-4.12.1.
The sip module will be installed in /software/sip-4.12.1.
The sip.h header file will be installed in /software/sip-4.12.1.
The default directory to install .sip files in is /software/sip-4.12.1.
The platform/compiler configuration is linux-g++.
Creating siplib/sip.h...
Creating siplib/siplib.c...
Creating siplib/siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...

make

make[1]: Entering directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/sipgen'
gcc -c -pipe -O2 -w -DNDEBUG -I. -o main.o main.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o transform.o transform.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o gencode.o gencode.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o extracts.o extracts.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o export.o export.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o heap.o heap.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o parser.o parser.c
gcc -c -pipe -O2 -w -DNDEBUG -I. -o lexer.o lexer.c
g++  -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o
lexer.o
make[1]: Leaving directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/sipgen'
make[1]: Entering directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/siplib'
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o siplib.o siplib.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o apiversions.o apiversions.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o descriptors.o descriptors.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o qtlib.o qtlib.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o threads.o threads.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o objmap.o objmap.c
gcc -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o voidptr.o voidptr.c
g++ -c -pipe -O2 -w -DNDEBUG -DSIP_STATIC_MODULE -I.
-I/usr/include/python2.4 -o bool.o bool.cpp
rm -f libsip.a
ar cqs libsip.a siplib.o apiversions.o descriptors.o qtlib.o threads.o
objmap.o voidptr.o bool.o
make[1]: Leaving directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/siplib'

make install

make[1]: Entering directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/sipgen'
cp -f sip /software/sip-4.12.1/sip
make[1]: Leaving directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/sipgen'
make[1]: Entering directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/siplib'
cp -f libsip.a /software/sip-4.12.1/libsip.a
cp -f /share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/siplib/sip.h
/software/sip-4.12.1/sip.h
make[1]: Leaving directory
`/share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/siplib'
cp -f sipconfig.py /software/sip-4.12.1/sipconfig.py
cp -f /share/lcbcpc35/software/SOURCES/sip/sip-4.12.1/sipdistutils.py
/software/sip-4.12.1/sipdistutils.py
--------------------------------------------------------------------------------------------------------------------------------------------

Then, I included the non-standard folder in my $PATH  variable so that:

$ which sip
/software/sip-4.12.1/sip

And finally, I tried to install PyQt-x11-gpl-4.8.3 from the sources. But
when i tried to run configure, I found the following error message:

$ python configure.py
Error: This version of PyQt requires SIP v4.12.1 or later

I tried to find information about this issue, but I could not solve the
problem. Could anybody shed light on this problem?
Thanks a lot in advance,

Pablo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110316/dae61d40/attachment-0001.html>


More information about the PyQt mailing list