[PyQt] Unable to statically build PyQtPurchasing

Phil Thompson phil at riverbankcomputing.com
Wed Feb 1 17:36:20 GMT 2017


On 31 Jan 2017, at 9:14 pm, Dave Gradwell <davegradwell at yahoo.co.uk> wrote:
> 
> Hi,
> 
> I’m unable to statically build PyQtPurchasing_gpl-5.7.1.
> I’ve followed the guide here: http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html#qt-purchasing
> And used the following 2 lines:
> pyqtdeploycli --package pyqtpurchasing configure
> then
> python3 configure.py --qmake=/Users/Shared/Qt5.7.1/5.7/clang_64/bin/qmake --sip=/Users/Shared/pyqt/built/bin/sip --qtpurchasing-version=5.7.1 --static --sysroot=/Users/Shared/pyqt/built --no-sip-files --no-qsci-api --configuration=pyqtpurchasing-osx.cfg
> Both seem to work, but when I ‘make’ I get the following error:
> 
> [……….]Qt5.7.1/5.7/clang_64/mkspecs/macx-clang -F/Users/Shared/Qt5.7.1/5.7/clang_64/lib -o sipQtPurchasingcmodule.o sipQtPurchasingcmodule.cpp
> In file included from sipQtPurchasingcmodule.cpp:24:
> ./sipAPIQtPurchasing.h:31:10: fatal error: 'sip.h' file not found
> #include <sip.h>
>          ^
> 1 error generated.
> make[1]: *** [sipQtPurchasingcmodule.o] Error 1
> make: *** [sub-QtPurchasing-make_first-ordered] Error 2
> 
> I’m on OS X 10.11.3 El Capitan.  Python is 3.5.3, Qt is 5.7.1.
> Any help appreciated.

That suggests a problem with your SIP installation. build-sysroot.py should build everything without problems.

Phil



More information about the PyQt mailing list