<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 8, 2017, at 6:15 AM, Kálmán Viktor <<a href="mailto:viktorvector@gmail.com" class="">viktorvector@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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.<div class=""><br class=""></div><div class="">(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)</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2017-11-08 15:04 GMT+01:00 Patrick Stinson <span dir="ltr" class=""><<a href="mailto:patrickkidd@gmail.com" target="_blank" class="">patrickkidd@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you post the commands you have used to run everything?<br class="">
<br class="">
That error is common when using a version of Qt built for iOS but building PyQt for macOS.<br class="">
<div class=""><div class="h5"><br class="">
> On Nov 8, 2017, at 4:34 AM, Kálmán Viktor <<a href="mailto:viktorvector@gmail.com" class="">viktorvector@gmail.com</a>> wrote:<br class="">
><br class="">
> Hello,<br class="">
><br class="">
> 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<br class="">
><br class="">
> /Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">bin/clang++ -c -pipe -stdlib=libc++ -O2 -fPIC -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/<wbr class="">Contents/Developer/Platforms/<wbr class="">MacOSX.platform/Developer/<wbr class="">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_<wbr class="">64/lib/QtCore.framework/<wbr class="">Headers -I. -I../../../../Qt/5.9.1/clang_<wbr class="">64/mkspecs/macx-clang -F/Users/norbert/Qt/5.9.1/<wbr class="">clang_64/lib -o qpycore_chimera.o ../qpy/QtCore/qpycore_chimera.<wbr class="">cpp<br class="">
> /Users/kviktor/ios_sysroot/<wbr class="">build/PyQt5_gpl-5.9.1/sip/<wbr class="">QtCore/qobject.sip:362:10: error: use of undeclared identifier 'sipName_QProcess'<br class="">
> {sipName_QProcess, &sipType_QProcess, -1, -1},<br class="">
> ^<br class="">
> /Users/kviktor/ios_sysroot/<wbr class="">build/PyQt5_gpl-5.9.1/sip/<wbr class="">QtCore/qobject.sip:362:29: error: use of undeclared identifier 'sipType_QProcess'<br class="">
> {sipName_QProcess, &sipType_QProcess, -1, -1},<br class="">
><br class="">
><br class="">
> 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)<br class="">
><br class="">
><br class="">
> 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_<wbr class="">64<br class="">
><br class="">
> Sip seems to build just fine:<br class="">
> $ $SYSROOT/bin/sip -V<br class="">
> 4.19.5<br class="">
><br class="">
</div></div>> ______________________________<wbr class="">_________________<br class="">
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" class="">PyQt@riverbankcomputing.com</a><br class="">
> <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank" class="">https://www.<wbr class="">riverbankcomputing.com/<wbr class="">mailman/listinfo/pyqt</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>