[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: =?gb2312?B?u9i4tDogYnVpZCBQeVF0V2ViZW5naW5lIGZyb20gc291cmNl?=
From: Yi tiger <yitiger () hotmail ! com>
Date: 2024-01-19 9:22:31
Message-ID: TYWP286MB28574F353BA0332A163AD12DB2702 () TYWP286MB2857 ! JPNP286 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]
[Attachment #2 (text/plain)]
After some more debug I found I'm using wrong version of sip, and I then use sip \
6.7.7 and pyqt-builder 1.14 to build, and the issue go away.
Thanks,
Tiger
________________________________
·¢¼þÈË: Yi tiger <yitiger@hotmail.com>
·¢ËÍʱ¼ä: 2024Äê1Ô 19ÈÕ 14:22
ÊÕ¼þÈË: pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com>
Ö÷Ìâ: buid PyQtWebengine from source
DA,
I'm trying to build PyQtWebEngine from source, but got follow errors. QT already \
complied with openssl support.
home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:28: \
error: ¡®QSslCertificate¡¯ was not declared in this scope 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc); | \
^~~~~~~~~~~~~~~
/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:43: \
error: template argument 1 is invalid 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc); | \
^
/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:45: \
error: expected ¡®>¡¯ before ¡®*¡¯ token 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc); | \
^
/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:45: \
error: expected ¡®(¡¯ before ¡®*¡¯ token 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc); | \
^ | (
/home/tyi/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:46: \
error: expected primary-expression before ¡®>¡¯ token
I googled but not find any usefully information, can anyone has clue?
below is configure output
$PY3_BIN configure.py --qmake /home/xx/lib/bin/qmake
Configuring PyQtWebEngine 5.15.6...
The PyQtWebEngine .sip files will be installed in
/home/xx/python3/share/sip/PyQt5.
PyQtWebEngine will be installed in
/home/xx/python3/lib/python3.8/site-packages/PyQt5.
PyQt 5.15.6 is being used.
Qt 5.15.6 is being used.
sip 4.19.25 is being used.
The sip executable is /home/xx/python3/bin/sip.
PyQtWebEngine is being built with 'protected' redefined as 'public'.
The PEP 484 stubs will be installed in
/home/xx/python3/lib/python3.8/site-packages/PyQt5.
The QScintilla API file will be installed in
/home/xx/lib/qsci/api/python.
Generating the C++ source for the QtWebEngine module...
Generating the .pro file for the QtWebEngine module...
Generating the C++ source for the QtWebEngineCore module...
Generating the .pro file for the QtWebEngineCore module...
Generating the C++ source for the QtWebEngineWidgets module...
Generating the .pro file for the QtWebEngineWidgets module...
Generating the QScintilla API file...
Generating the top-level .pro file...
Generating the Makefiles...
Thanks in advance,
Tiger
[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 class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> After some more debug I found I'm using wrong \
version of sip, and I then use sip 6.7.7 and pyqt-builder 1.14 to build, and the \
issue go away.</div> <div class="elementToProof" style="font-family: Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> Thanks,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div id="Signature">
<div><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);">Tiger </span></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> Yi tiger \
<yitiger@hotmail.com><br> <b>·¢ËÍʱ¼ä:</b> 2024Äê1Ô 19ÈÕ 14:22<br>
<b>ÊÕ¼þÈË:</b> pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com><br>
<b>Ö÷Ìâ:</b> buid PyQtWebengine from source</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> DA,</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> <br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> I'm trying to build PyQtWebEngine from source, but \
got follow errors. QT already complied with openssl support.</div> <div \
class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> <br>
</div>
<div class="x_elementToProof"><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:28: \
error: ¡®QSslCertificate¡¯ was not declared in this scope</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc);</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> | \
^~~~~~~~~~~~~~~</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:43: \
error: template argument 1 is invalid</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc);</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> | \
\
^</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:45: \
error: expected ¡®>¡¯ before ¡®*¡¯ token</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc);</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> | \
\
^</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:45: \
error: expected ¡®(¡¯ before ¡®*¡¯ token</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> 35 | \
reinterpret_cast<QList<QSslCertificate> *>(sipDst)[sipDstIdx] = \
*reinterpret_cast<QList<QSslCertificate> *>(sipSrc);</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> | \
\
^</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)"> | \
\
(</span></div> <div class="x_elementToProof"><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/tyi/Documents/PyQtWebEngine-5.15.6/QtWebEngineWidgets/sipQtWebEngineWidgetsQList0100QSslCertificate.cpp:35:46: \
error: expected primary-expression before ¡®>¡¯ token</span></div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> <br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> I googled but not find any usefully information, \
can anyone has clue?</div> <div class="x_elementToProof" \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"> \
<br> </div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> below is configure output</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> <br>
</div>
<div class="x_elementToProof"><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">$PY3_BIN configure.py --qmake \
/home/xx/lib/bin/qmake</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">Configuring PyQtWebEngine 5.15.6...</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">The PyQtWebEngine .sip files will be installed in</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/python3/share/sip/PyQt5.</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">PyQtWebEngine will be installed in</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/python3/lib/python3.8/site-packages/PyQt5.</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">PyQt 5.15.6 is being used.</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">Qt \
5.15.6 is being used.</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">sip 4.19.25 is being used.</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">The sip executable is /home/xx/python3/bin/sip.</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">PyQtWebEngine is being built with 'protected' redefined as \
'public'.</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">The PEP 484 stubs will be installed in</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/python3/lib/python3.8/site-packages/PyQt5.</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">The QScintilla API file will be installed in</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">/home/xx/lib/qsci/api/python.</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">Generating the C++ source for the QtWebEngine \
module...</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the .pro file for the QtWebEngine \
module...</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the C++ source for the QtWebEngineCore \
module...</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the .pro file for the QtWebEngineCore \
module...</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the C++ source for the \
QtWebEngineWidgets module...</span></div> <div><span \
style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">Generating the .pro file for the QtWebEngineWidgets \
module...</span></div> <div><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the QScintilla API file...</span></div> \
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">Generating the top-level .pro file...</span></div> <div \
class="x_elementToProof"><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Generating the Makefiles...</span></div> <div \
class="x_elementToProof"><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"><br> </span></div>
<div class="x_elementToProof"><span style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)">Thanks in advance,</span></div> <div \
class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; \
font-size:12pt; color:rgb(0,0,0)"> <br>
</div>
<div id="x_Signature">
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; \
color:rgb(0,0,0)">Tiger </span></div>
</div>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic