[PyQt] Re: autodetect Python.h in configure.py for SIP

techtonik techtonik at php.net
Tue Jun 19 10:41:33 BST 2007


The problem is that configure.py uses backward slashes in Makefile for MSYS on
Windows platform.

User at VMSYS /c/WorkSpace/Eric IDE/Prerequisites/sip-4.6
$ c:/tools/python24/python ./configure.py -p win32-g++
This is SIP 4.6 for Python 2.4.3 on win32.
The SIP code generator will be installed in c:\tools\python24.
The SIP module will be installed in c:\tools\python24\Lib\site-packages.
The SIP header file will be installed in c:\tools\python24\include.
The default directory to install .sip files in is c:\tools\python24\sip.
The platform/compiler configuration is win32-g++.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...

User at VMSYS /c/WorkSpace/Eric IDE/Prerequisites/sip-4.6
$ make 
make[1]: Entering directory `/c/WorkSpace/Eric IDE/Prerequisites/sip-4.6/sipgen'
make[1]: `sip.exe' is up to date.
make[1]: Leaving directory `/c/WorkSpace/Eric IDE/Prerequisites/sip-4.6/sipgen'
make[1]: Entering directory `/c/WorkSpace/Eric IDE/Prerequisites/sip-4.6/siplib'
gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -Ic:\tools\python24\include 
-o siplib.o siplib.c
siplib.c:17:20: Python.h: No such file or directory
In file included from siplib.c:23:
sip.h:47:2: #error "This version of SIP requires Python v2.3 or later"
In file included from siplib.c:23:
sip.h:164: error: syntax error before "PyHeapTypeObject"
sip.h:174: error: syntax error before '}' token
sip.h:181: error: syntax error before "PyObject_HEAD"
sip.h:198: error: syntax error before '*' token

...

siplib.c:1470: error: first argument to `va_arg' not of type `va_list'
siplib.c:1481: error: first argument to `va_arg' not of type `va_list'
siplib.c:1500: error: first argument to `va_arg' not of type `va_list'
make[1]: *** [siplib.o] Error 1
make[1]: Leaving directory `/c/WorkSpace/Eric IDE/Prerequisites/sip-4.6/siplib'
make: *** [all] Error 2

User at VMSYS /c/WorkSpace/Eric IDE/Prerequisites/sip-4.6
$ ls c:/tools/python24/include
Python.h        cobject.h        eval.h         intobject.h     modsupport.h   
 pgen.h          pymem.h        stringobject.h  ucnhash.h
abstract.h      codecs.h         fileobject.h   intrcheck.h     moduleobject.h 
 pgenheaders.h   pyport.h       structmember.h  unicodeobject.h
bitset.h        compile.h        floatobject.h  iterobject.h    node.h        
  py_curses.h     pystate.h      structseq.h     weakrefobject.h
boolobject.h    complexobject.h  frameobject.h  listobject.h    object.h       
 pyconfig.h      pystrtod.h     symtable.h
bufferobject.h  datetime.h       funcobject.h   longintrepr.h   objimpl.h      
 pydebug.h       pythonrun.h    sysmodule.h
cStringIO.h     descrobject.h    genobject.h    longobject.h    opcode.h       
 pyerrors.h      pythread.h     timefuncs.h
cellobject.h    dictobject.h     graminit.h     marshal.h       osdefs.h       
 pyfpe.h         rangeobject.h  token.h
ceval.h         enumobject.h     grammar.h      metagrammar.h   parsetok.h     
 pygetopt.h      setobject.h    traceback.h
classobject.h   errcode.h        import.h       methodobject.h  patchlevel.h   
 pymactoolbox.h  sliceobject.h  tupleobject.h

User at VMSYS /c/WorkSpace/Eric IDE/Prerequisites/sip-4.6
$ 





More information about the PyQt mailing list