[PyQt] static Python target osx-64 missing util.h
John M. Hackett
john.hackett at icon-is.co.uk
Tue Dec 8 14:00:13 GMT 2015
I have an App compiling and running correctly under Linux with PyQt5 and Python 2.7.9 using pyqtdeploy (thanks for the help Phil!)
I am trying now to compile it with osx as the target. I have the source code the Python and it builds correclty for Linux using these commands:
pyqtdeploycli --package python --target linux-64 configure
If I change my $SYSROOT and the target for a osx build I get an error. So the commands I'm using are:
pyqtdeploycli --package python --target osx-64 configure
make fails with this error:
Modules/posixmodule.c: At top level:
Modules/posixmodule.c:3869:18: fatal error: util.h: No such file or directory
make: *** [.obj/posixmodule.o] Error 1
I've looked into the generated pyconfig.h file and for the linux target line 361 is "/* #define HAVE_UTIL_H */" but with the osx target "#define HAVE_UTIL_H 1". So it looks as if the osx target requires this header file. I tried commenting it out but the make just failed earlier as this header file seems to be providing some definitions to the posixmodule.
Question: where can I find this header and why isn't it in the source (downloaded from Python.org)?
Icon Information Systems
74 Gibsons Hill, Norbury, London, SW16 3JS
t: 020 8764 2663
f: 020 8711 3370
e: john.hackett at icon-is.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt