[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    =?gb2312?B?u9i4tDogu9i4tDogu9i4tDogu9i4tDogu9i4tDogYnVpbGQgUHlRdDUuMTUu?= =?gb2312?Q?6_from_source_g
From:       Yi tiger <yitiger () hotmail ! com>
Date:       2023-03-13 8:16:39
Message-ID: TYWP286MB301973E5FF8434F4F530BC85B2B99 () TYWP286MB3019 ! JPNP286 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Attachment #2 (text/plain)]

Thanks Phil, so if I would compile Py QtQuick then I need to have OpenGL enabled and \
have to rebuild Qt without no-open-gl option.

Thanks,

Tiger
________________________________
·¢¼þÈË: Phil Thompson <phil@riverbankcomputing.com>
·¢ËÍʱ¼ä: 2023Äê3Ô 12ÈÕ 23:37
ÊÕ¼þÈË: Yi tiger <yitiger@hotmail.com>
³­ËÍ: pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com>
Ö÷Ìâ: Re: »Ø¸´: »Ø¸´: »Ø¸´: »Ø¸´: build PyQt5.15.6 from source got error

There is a bug in that some of the OpenGL-dependant parts of the QtQuick
API are left enabled when OpenGL is not available. However as (I think)
QtQuick is useless without OpenGL support then your original use of
'--disable QtQuick' was the right thing to do.

Phil

On 12/03/2023 14:11, Yi tiger wrote:
> 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@riverbankcomputing.com>
> ·¢ËÍʱ¼ä: 2023Äê3Ô 10ÈÕ 17:40
> ÊÕ¼þÈË: Yi tiger <yitiger@hotmail.com>
> ³­ËÍ: pyqt@riverbankcomputing.com <pyqt@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@riverbankcomputing.com>
> > ·¢ËÍʱ¼ä: 2023Äê3Ô 9ÈÕ 19:30
> > ÊÕ¼þÈË: Yi tiger <yitiger@hotmail.com>
> > ³­ËÍ: pyqt@riverbankcomputing.com <pyqt@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


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"> Thanks \
Phil, so if I would compile Py QtQuick then I need to have OpenGL enabled and have to \
rebuild Qt without no-open-gl option.</div> <div style="font-family: Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255);" class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"> \
Thanks,</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" \
class="elementToProof"> <br>
</div>
<div class="elementToProof">
<div id="Signature">
<div>Tiger </div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>·¢¼þÈË:</b> Phil Thompson \
&lt;phil@riverbankcomputing.com&gt;<br> <b>·¢ËÍʱ¼ä:</b> 2023Äê3Ô 12ÈÕ 23:37<br>
<b>ÊÕ¼þÈË:</b> Yi tiger &lt;yitiger@hotmail.com&gt;<br>
<b>³­ËÍ:</b> pyqt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
<b>Ö÷Ìâ:</b> Re: »Ø¸´: »Ø¸´: »Ø¸´: »Ø¸´: build PyQt5.15.6 from source got \
error</font> <div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">There is a bug in that some of the OpenGL-dependant parts of \
the QtQuick <br>
API are left enabled when OpenGL is not available. However as (I think) <br>
QtQuick is useless without OpenGL support then your original use of <br>
'--disable QtQuick' was the right thing to do.<br>
<br>
Phil<br>
<br>
On 12/03/2023 14:11, Yi tiger wrote:<br>
&gt; Thanks Phil, I have upgrade PyQt-builder to v1.14.1, but still got the<br>
&gt; same issue. attached installtion log for your investigate (zipped)<br>
&gt; <br>
&gt; g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -Wextra<br>
&gt; -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03070000<br>
&gt; -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS<br>
&gt; -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB<br>
&gt; -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I.<br>
&gt; -I.. -I../../qpy/QtQuick<br>
&gt; -I/nfs/DEV/GUI/tyi/priv/python3/include/python3.8<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtQuick<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtGui<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtQmlModels<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtQml<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtNetwork<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/include/QtCore -I.<br>
&gt; -I/usr/local/AVX/qt/5.15.6_1/mkspecs/linux-g++ -o<br>
&gt; sipQtQuickQQuickRenderControl.o sipQtQuickQQuickRenderControl.cpp<br>
&gt; /home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:<br>
&gt; In function ¡®void* init_type_QSGGeometry(sipSimpleWrapper*, PyObject*,<br>
&gt; PyObject*, PyObject**, PyObject**, PyObject**)¡¯:<br>
&gt; /home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:955:18:<br>
 &gt; error: ¡®GL_UNSIGNED_SHORT¡¯ was not declared in this scope<br>
&gt;&nbsp;&nbsp; 955 |&nbsp;&nbsp;&nbsp;&nbsp; \
{sipName_defaultAttributes_ColoredPoint2D,<br> &gt; \
meth_QSGGeometry_defaultAttributes_ColoredPoint2D, METH_VARARGS,<br> &gt; \
doc_QSGGeometry_defaultAttributes_ColoredPoint2D},<br> \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^~~~~~~~~~~~~~~~~<br> &gt; \
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:<br> &gt; At \
global scope:<br> &gt; \
/home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1031:40:<br> \
&gt; error: ¡®GL_BYTE¡¯ was not declared in this scope<br> &gt;&nbsp; 1031 \
|&nbsp;&nbsp;&nbsp;&nbsp; 0,<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<br> &gt; /home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1032:41:<br>
 &gt; error: ¡®GL_FLOAT¡¯ was not declared in this scope<br>
&gt;&nbsp; 1032 |&nbsp;&nbsp;&nbsp;&nbsp; SIP_NULLPTR,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<br> &gt; /home/tyi/Documents/PyQt5-5.15.9/build/QtQuick/sipQtQuickQSGGeometry.cpp:1033:39:<br>
 &gt; error: ¡®GL_INT¡¯ was not declared in this scope<br>
&gt;&nbsp; 1033 |&nbsp;&nbsp;&nbsp;&nbsp; SIP_NULLPTR<br>
&gt; <br>
&gt; <br>
&gt; Tiger<br>
&gt; ________________________________<br>
&gt; ·¢¼þÈË: Phil Thompson &lt;phil@riverbankcomputing.com&gt;<br>
&gt; ·¢ËÍʱ¼ä: 2023Äê3Ô 10ÈÕ 17:40<br>
&gt; ÊÕ¼þÈË: Yi tiger &lt;yitiger@hotmail.com&gt;<br>
&gt; ³­ËÍ: pyqt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
&gt; Ö÷Ìâ: Re: »Ø¸´: »Ø¸´: »Ø¸´: build PyQt5.15.6 from source got error<br>
&gt; <br>
&gt; The current version of PyQt-builder is v1.14.1.<br>
&gt; <br>
&gt; If you still have a problem then send me the output of running <br>
&gt; sip-build<br>
&gt; with the --verbose flag set.<br>
&gt; <br>
&gt; Phil<br>
&gt; <br>
&gt; On 10/03/2023 09:27, Yi tiger wrote:<br>
&gt;&gt; I still got the same error after switch to SIP 6.7.7.<br>
&gt;&gt; below is my configuration<br>
&gt;&gt; <br>
&gt;&gt;&nbsp;&nbsp; *&nbsp;&nbsp; SIP 6.7.7<br>
&gt;&gt;&nbsp;&nbsp; *&nbsp;&nbsp; PyQt-builder 1.13.0<br>
&gt;&gt;&nbsp;&nbsp; *&nbsp;&nbsp; PyQt 5.15.9<br>
&gt;&gt;&nbsp;&nbsp; *&nbsp;&nbsp; PyQt-sip 12.8.0<br>
&gt;&gt; <br>
&gt;&gt; and now I'm using sip-build to build pyqt5<br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; Tiger<br>
&gt;&gt; ________________________________<br>
&gt;&gt; ·¢¼þÈË: Phil Thompson &lt;phil@riverbankcomputing.com&gt;<br>
&gt;&gt; ·¢ËÍʱ¼ä: 2023Äê3Ô 9ÈÕ 19:30<br>
&gt;&gt; ÊÕ¼þÈË: Yi tiger &lt;yitiger@hotmail.com&gt;<br>
&gt;&gt; ³­ËÍ: pyqt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
&gt;&gt; Ö÷Ìâ: Re: »Ø¸´: »Ø¸´: build PyQt5.15.6 from source got error<br>
&gt;&gt; <br>
&gt;&gt; On 09/03/2023 11:21, Yi tiger wrote:<br>
&gt;&gt;&gt; Thanks Phil's quick response, I tried the latest PyQt5.15.9 with sip<br>
&gt;&gt;&gt; 4.19.25. still got the same error<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; [cid:cb16439f-f8ea-415d-ad80-bb765d3b29ec]<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; manually modified Qtcoremod.sip by removing&nbsp; \
py_ssize_t_clean=True<br> &gt;&gt;&gt; (otherwise I got syntax error during \
config)<br> &gt;&gt;&gt; <br>
&gt;&gt;&gt; $PY3_BIN configure.py -q $QT_ROOT/qmake --no-designer-plugin<br>
&gt;&gt;&gt; --no-qml-plugin --sip=$PY3_ROOT/bin/sip&nbsp; -w \
--allow-sip-warnings<br> &gt;&gt;&gt; --verbose<br>
&gt;&gt; <br>
&gt;&gt; The current version of SIP is v6.7.7.<br>
&gt;&gt; <br>
&gt;&gt; Phil<br>
</div>
</span></font></div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic