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. <br>I still get the same errors.<br><br><br>--amicitas<br><br><br><div class="gmail_quote">
On Sat, Mar 21, 2009 at 1:17 AM, mir amicitas <span dir="ltr"><<a href="mailto:amicitas@gmail.com">amicitas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am unable to build sip on windows XP.<br>Any help with this would be appreciated.<br><br>The error happens with both sip-4.7.9 and sip-4.8-snapshot-20090320.<br>Python 2.6.1<br>MinGW 5.1.4<br><br>I suspect this has to do with something looking for "LONG_LONG" instead of "PY_LONG_LONG".<br>
<br>The commands that I am using to build are:<br>python configure.py -p win32-g++<br>mingw32-make<br><br>Included below is the first part of the terminal output.<br><br><br>Thanks,<br>amicitas<br><br>--------------------------------------------------<br>
<br>>python configure.py -p win32-g++<br>This is SIP 4.7.9 for Python 2.6.1 on win32.<br>The SIP code generator will be installed in C:\Programs\programming\Python 2.6.<br>The SIP module will be installed in C:\Programs\programming\Python<br>
2.6\Lib\site-packages.<br>The SIP header file will be installed in C:\Programs\programming\Python<br>2.6\include.<br>The default directory to install .sip files in is<br>C:\Programs\programming\Python 2.6\sip.<br>The platform/compiler configuration is win32-g++.<br>
Creating sipconfig.py...<br>Creating top level Makefile...<br>Creating sip code generator Makefile...<br>Creating sip module Makefile...<br><br>>mingw32-make<br>mingw32-make[1]: Entering directory `C:/Documents and Settings/amicitas/Desktop/sip-4.7.9/sipgen'<br>
makefile:29: warning: overriding commands for target `.c.o'<br>makefile:26: warning: ignoring old commands for target `.c.o'<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o transform.o transform.c<br>
gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o gencode.o gencode.c<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o export.o export.c<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o heap.o heap.c<br>
gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o parser.o parser.c<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o lexer.o lexer.c<br>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<br>
mingw32-make[1]: Leaving directory `C:/Documents and Settings/amicitas/Desktop/sip-4.7.9/sipgen'<br>mingw32-make[1]: Entering directory `C:/Documents and Settings/amicitas/Desktop/sip-4.7.9/siplib'<br>makefile:29: warning: overriding commands for target `.c.o'<br>
makefile:26: warning: ignoring old commands for target `.c.o'<br>gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -I"C:\Programs\programming\Python 2.6\include" -o siplib.o siplib.c<br>In file included from C:/Programs/programming/Python 2.6/include/Python.h:86,<br>
from siplib.c:16:<br>C:/Programs/programming/Python 2.6/include/intobject.h:45: error: parse error before "PyInt_AsUnsignedLongLongMask"<br>In file included from C:/Programs/programming/Python 2.6/include/Python.h:88,<br>
from siplib.c:16:<br>C:/Programs/programming/Python 2.6/include/longobject.h:49: error: parse error before "PyLong_AsLongLong"<br>C:/Programs/programming/Python 2.6/include/longobject.h:50: error: parse error before "PyLong_AsUnsignedLongLong"<br>
C:/Programs/programming/Python 2.6/include/longobject.h:51: error: parse error before "PyLong_AsUnsignedLongLongMask"<br>In file included from siplib.c:22:<br>sip.h:876: error: parse error before "__int64"<br>
. . .<br>. . . <br><br>
</blockquote></div><br>