回复: buid PyQtWebengine from source
Yi tiger
yitiger at hotmail.com
Fri Jan 19 09:22:31 GMT 2024
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 at hotmail.com>
发送时间: 2024年1月19日 14:22
收件人: pyqt at riverbankcomputing.com <pyqt at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240119/a64bc424/attachment-0001.htm>
More information about the PyQt
mailing list