[PyQt] compile pyqt and sip to ansi version of python
Phil Thompson
phil at riverbankcomputing.com
Sat Oct 31 10:25:32 GMT 2009
On Sat, 31 Oct 2009 16:46:19 +0800, faizol halim <faizol.halim at gmail.com>
wrote:
> Hi everyone,
>
> sip version: 4.9.1
> pyqt version: PyQt-x11-gpl-4.6.1
>
> I'm having a problem in compiling pyqt and sip for an ansi version of
> python2.5 on Fedora 11 platform. It's the application requirement that I
> have to use the ansi version of the python.
>
> here's an output when tring to compile sip afetr running make,
>
> make[1]: Entering directory `/home/dev/python/houdini/sip-4.9.1/sipgen'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/dev/python/houdini/sip-4.9.1/sipgen'
> make[1]: Entering directory `/home/dev/python/houdini/sip-4.9.1/siplib'
> gcc -c -pipe -fPIC -O2 -w -DNDEBUG -I. -I/usr/local/include/python2.5 -o
> siplib.o siplib.c
> siplib.c: In function ‘convertToWCharArray’:
> siplib.c:9754: error: ‘PyUnicodeObject’ undeclared (first use in this
> function)
> siplib.c:9754: error: (Each undeclared identifier is reported only once
> siplib.c:9754: error: for each function it appears in.)
> siplib.c:9754: error: expected expression before ‘)’ token
> siplib.c: In function ‘convertToWChar’:
> siplib.c:9805: error: ‘PyUnicodeObject’ undeclared (first use in this
> function)
> siplib.c:9805: error: expected expression before ‘)’ token
> siplib.c: In function ‘convertToWCharString’:
> siplib.c:9861: error: ‘PyUnicodeObject’ undeclared (first use in this
> function)
> siplib.c:9861: error: expected expression before ‘)’ token
> make[1]: *** [siplib.o] Error 1
> make[1]: Leaving directory `/home/dev/python/houdini/sip-4.9.1/siplib'
> make: *** [all] Error 2
>
> is there any flags that I should send to configure.py to generate the
right
> makefile? Plus, may be there are some more steps that I should take care
> of?
>
> I really really appreciate any help on this (been trying to compile sip
and
> pyqt for a few number of days to no avail).
Building without Unicode support isn't supported. You'll just have to hack
at the code until it compiles.
Phil
More information about the PyQt
mailing list