[PyQt] PyQt5 build issues on OS X

Patrick Stinson patrickkidd at gmail.com
Wed Nov 8 14:17:26 GMT 2017


Yes, I have found that I had to patch python with #undef HAVE_SYSTEM to get it to build after the upgrade to high sierra.

> On Nov 8, 2017, at 6:15 AM, Kálmán Viktor <viktorvector at gmail.com> wrote:
> 
> This was actually indeed an user error. The QT maintenance tool showed that I have the iOS packages installed however I only had the clang folder in Qt/5.9.1 folder, after "removing" and installing iOS again I had an ios directory in Qt/5.9.1 and build the succeeded.
> 
> (actually Python didn't build at first with the error: "/Modules/posixmodule.c:2661:11: error: 'system' is unavailable: not available on iOS" but I patched it quickly and it seems to build now)
> 
> 2017-11-08 15:04 GMT+01:00 Patrick Stinson <patrickkidd at gmail.com <mailto:patrickkidd at gmail.com>>:
> Can you post the commands you have used to run everything?
> 
> That error is common when using a version of Qt built for iOS but building PyQt for macOS.
> 
> > On Nov 8, 2017, at 4:34 AM, Kálmán Viktor <viktorvector at gmail.com <mailto:viktorvector at gmail.com>> wrote:
> >
> > Hello,
> >
> > I've been trying to build Python, sip and PyQt5  on OS X (10.13.1) using the build_sysroot.py scripts but I get the following error during building PyQt5
> >
> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -fPIC -std=gnu++11  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.10 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I. -I../../../include/python3.5 -I../qpy/QtCore -I../../../../Qt/5.9.1/clang_64/lib/QtCore.framework/Headers -I. -I../../../../Qt/5.9.1/clang_64/mkspecs/macx-clang -F/Users/norbert/Qt/5.9.1/clang_64/lib -o qpycore_chimera.o ../qpy/QtCore/qpycore_chimera.cpp
> > /Users/kviktor/ios_sysroot/build/PyQt5_gpl-5.9.1/sip/QtCore/qobject.sip:362:10: error: use of undeclared identifier 'sipName_QProcess'
> >         {sipName_QProcess, &sipType_QProcess, -1, -1},
> >          ^
> > /Users/kviktor/ios_sysroot/build/PyQt5_gpl-5.9.1/sip/QtCore/qobject.sip:362:29: error: use of undeclared identifier 'sipType_QProcess'
> >         {sipName_QProcess, &sipType_QProcess, -1, -1},
> >
> >
> > I initially tried an older version but the newest package has the same issue (PyQt5_gpl-5.9.1.tar.gz downloaded from the website today)
> >
> >
> > The build command I used is: $ MAKEFLAGS="-j3" python3 build_scripts/build_sysroot.py --target ios-64 --sysroot=$SYSROOT --build pyqt5 sip --qt /Users/kviktor/Qt/5.9.1/clang_64
> >
> > Sip seems to build just fine:
> > $ $SYSROOT/bin/sip -V
> > 4.19.5
> >
> > _______________________________________________
> > PyQt mailing list    PyQt at riverbankcomputing.com <mailto:PyQt at riverbankcomputing.com>
> > https://www.riverbankcomputing.com/mailman/listinfo/pyqt <https://www.riverbankcomputing.com/mailman/listinfo/pyqt>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171108/1b1bca6a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1403 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171108/1b1bca6a/attachment.bin>


More information about the PyQt mailing list