[PyQt] PyQt5 build issues on OS X
Patrick Stinson
patrickkidd at gmail.com
Wed Nov 8 14:16:29 GMT 2017
Sorry, I didn’t see the rest of your message with the command line. I see in the path to the SYSROOT that this build is for iOS, but you are using your own qt dir. The problem is a mismatch in Qt and PyQt platforms. If you can separate them out that would be ideal.
I began using the build_sysroot.py script to save time, and it’s a great idea, but now I build everything separately. I have attached my comprehensive build notes. They are not perfect step-by-step instructions, but if you apply a few brain cycles to it it might help you.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LIBS README.txt
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171108/ab261362/attachment-0001.txt>
-------------- next part --------------
> On Nov 8, 2017, at 6:04 AM, Patrick Stinson <patrickkidd at gmail.com> wrote:
>
> 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
-------------- 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/ab261362/attachment-0001.bin>
More information about the PyQt
mailing list