回复: 回复: 回复: 回复: build PyQt5.15.6 from source got error
Yi tiger
yitiger at hotmail.com
Sun Mar 12 14:11:06 GMT 2023
Thanks Phil, I have upgrade PyQt-builder to v1.14.1, but still got the same issue. attached installtion log for your investigate (zipped)
g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03070000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -I.. -I../../qpy/QtQuick -I/nfs/DEV/GUI/tyi/priv/python3/include/python3.8 -I/usr/local/AVX/qt/5.15.6_1/include -I/usr/local/AVX/qt/5.15.6_1/include/QtQuick -I/usr/local/AVX/qt/5.15.6_1/include/QtGui -I/usr/local/AVX/qt/5.15.6_1/include/QtQmlModels -I/usr/local/AVX/qt/5.15.6_1/include/QtQml -I/usr/local/AVX/qt/5.15.6_1/include/QtNetwork -I/usr/local/AVX/qt/5.15.6_1/include/QtCore -I. -I/usr/local/AVX/qt/5.15.6_1/mkspecs/linux-g++ -o sipQtQuickQQuickRenderControl.o sipQtQuickQQuickRenderControl.cpp
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp: In function ‘void* init_type_QSGGeometry(sipSimpleWrapper*, PyObject*, PyObject*, PyObject**, PyObject**, PyObject**)’:
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:955:18: error: ‘GL_UNSIGNED_SHORT’ was not declared in this scope
955 | {sipName_defaultAttributes_ColoredPoint2D, meth_QSGGeometry_defaultAttributes_ColoredPoint2D, METH_VARARGS, doc_QSGGeometry_defaultAttributes_ColoredPoint2D},
| ^~~~~~~~~~~~~~~~~
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp: At global scope:
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1031:40: error: ‘GL_BYTE’ was not declared in this scope
1031 | 0,
| ^
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1032:41: error: ‘GL_FLOAT’ was not declared in this scope
1032 | SIP_NULLPTR,
| ^
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1033:39: error: ‘GL_INT’ was not declared in this scope
1033 | SIP_NULLPTR
Tiger
________________________________
发件人: Phil Thompson <phil at riverbankcomputing.com>
发送时间: 2023年3月10日 17:40
收件人: Yi tiger <yitiger at hotmail.com>
抄送: pyqt at riverbankcomputing.com <pyqt at riverbankcomputing.com>
主题: Re: 回复: 回复: 回复: build PyQt5.15.6 from source got error
The current version of PyQt-builder is v1.14.1.
If you still have a problem then send me the output of running sip-build
with the --verbose flag set.
Phil
On 10/03/2023 09:27, Yi tiger wrote:
> I still got the same error after switch to SIP 6.7.7.
> below is my configuration
>
> * SIP 6.7.7
> * PyQt-builder 1.13.0
> * PyQt 5.15.9
> * PyQt-sip 12.8.0
>
> and now I'm using sip-build to build pyqt5
>
>
>
> Tiger
> ________________________________
> 发件人: Phil Thompson <phil at riverbankcomputing.com>
> 发送时间: 2023年3月9日 19:30
> 收件人: Yi tiger <yitiger at hotmail.com>
> 抄送: pyqt at riverbankcomputing.com <pyqt at riverbankcomputing.com>
> 主题: Re: 回复: 回复: build PyQt5.15.6 from source got error
>
> On 09/03/2023 11:21, Yi tiger wrote:
>> Thanks Phil's quick response, I tried the latest PyQt5.15.9 with sip
>> 4.19.25. still got the same error
>>
>> [cid:cb16439f-f8ea-415d-ad80-bb765d3b29ec]
>>
>> manually modified Qtcoremod.sip by removing py_ssize_t_clean=True
>> (otherwise I got syntax error during config)
>>
>> $PY3_BIN configure.py -q $QT_ROOT/qmake --no-designer-plugin
>> --no-qml-plugin --sip=$PY3_ROOT/bin/sip -w --allow-sip-warnings
>> --verbose
>
> The current version of SIP is v6.7.7.
>
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230312/93c057fe/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install_py.zip
Type: application/x-zip-compressed
Size: 69768 bytes
Desc: install_py.zip
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230312/93c057fe/attachment-0001.bin>
More information about the PyQt
mailing list