[PyQt] PyQt5 build issues on OS X
Patrick Stinson
patrickkidd at gmail.com
Wed Nov 8 14:04:32 GMT 2017
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> 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
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list