[PyQt] Re: Building sip on windows XP, Python 2.6, MinGW

mir amicitas amicitas at gmail.com
Sun Mar 22 21:41:10 GMT 2009


Update.  I installed Python 2.5.4  and tried building using that
installation (again trying both sip-4.8-snapshot-20090320 & sip-4.7.9.
I still get the same errors.


--amicitas


On Sat, Mar 21, 2009 at 1:17 AM, mir amicitas <amicitas at gmail.com> wrote:

> I am unable to build sip on windows XP.
> Any help with this would be appreciated.
>
> The error happens with both sip-4.7.9 and sip-4.8-snapshot-20090320.
> Python 2.6.1
> MinGW 5.1.4
>
> I suspect this has to do with something looking for "LONG_LONG" instead of
> "PY_LONG_LONG".
>
> The commands that I am using to build are:
> python configure.py -p win32-g++
> mingw32-make
>
> Included below is the first part of the terminal output.
>
>
> Thanks,
> amicitas
>
> --------------------------------------------------
>
> >python configure.py -p win32-g++
> This is SIP 4.7.9 for Python 2.6.1 on win32.
> The SIP code generator will be installed in C:\Programs\programming\Python
> 2.6.
> The SIP module will be installed in C:\Programs\programming\Python
> 2.6\Lib\site-packages.
> The SIP header file will be installed in C:\Programs\programming\Python
> 2.6\include.
> The default directory to install .sip files in is
> C:\Programs\programming\Python 2.6\sip.
> The platform/compiler configuration is win32-g++.
> Creating sipconfig.py...
> Creating top level Makefile...
> Creating sip code generator Makefile...
> Creating sip module Makefile...
>
> >mingw32-make
> mingw32-make[1]: Entering directory `C:/Documents and
> Settings/amicitas/Desktop/sip-4.7.9/sipgen'
> makefile:29: warning: overriding commands for target `.c.o'
> makefile:26: warning: ignoring old commands for target `.c.o'
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o transform.o
> transform.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o gencode.o gencode.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o export.o export.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o heap.o heap.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o parser.o parser.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o lexer.o lexer.c
> g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
> -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s -o sip.exe
> main.o transform.o gencode.o export.o heap.o parser.o lexer.o
> mingw32-make[1]: Leaving directory `C:/Documents and
> Settings/amicitas/Desktop/sip-4.7.9/sipgen'
> mingw32-make[1]: Entering directory `C:/Documents and
> Settings/amicitas/Desktop/sip-4.7.9/siplib'
> makefile:29: warning: overriding commands for target `.c.o'
> makefile:26: warning: ignoring old commands for target `.c.o'
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I.
> -I"C:\Programs\programming\Python 2.6\include" -o siplib.o siplib.c
> In file included from C:/Programs/programming/Python
> 2.6/include/Python.h:86,
>                  from siplib.c:16:
> C:/Programs/programming/Python 2.6/include/intobject.h:45: error: parse
> error before "PyInt_AsUnsignedLongLongMask"
> In file included from C:/Programs/programming/Python
> 2.6/include/Python.h:88,
>                  from siplib.c:16:
> C:/Programs/programming/Python 2.6/include/longobject.h:49: error: parse
> error before "PyLong_AsLongLong"
> C:/Programs/programming/Python 2.6/include/longobject.h:50: error: parse
> error before "PyLong_AsUnsignedLongLong"
> C:/Programs/programming/Python 2.6/include/longobject.h:51: error: parse
> error before "PyLong_AsUnsignedLongLongMask"
> In file included from siplib.c:22:
> sip.h:876: error: parse error before "__int64"
> . . .
> . . .
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090322/9b9a1236/attachment.html


More information about the PyQt mailing list