[PyQt] Failed to build PyQt5 under CentOS6, qwebengineview.sip error

David Boddie david at boddie.org.uk
Mon Aug 24 10:55:33 BST 2015


On  Sat Aug 22 19:45:51 BST 2015, li zJay wrote:

> PyQt version: PyQt-gpl-5.5.1-snapshot-698e32887e28
> SIP version: 4.16.9
> Qt version: 5.5.0
> Python version: 2.7.8
> Linux kernel: 2.6.32-504.3.3.el6.x86_64
> Linux release: CentOS 6.6

> *Error message:*
> *...*

[...]

> /tmp/PyQt-gpl-5.5.1-snapshot-698e32887e28/sip/QtWebEngineWidgets/qwebengineview.sip:
> In function ‘PyObject* meth_QWebEngineView_findText(PyObject*, 
> PyObject*,
> PyObject*)’:
> /tmp/PyQt-gpl-5.5.1-snapshot-698e32887e28/sip/QtWebEngineWidgets/qwebengineview.sip:93:
> error: expected primary-expression before ‘[’ token
> /tmp/PyQt-gpl-5.5.1-snapshot-698e32887e28/sip/QtWebEngineWidgets/qwebengineview.sip:93:
> error: expected primary-expression before ‘bool’
> make[1]: *** [sipQtWebEngineWidgetsQWebEngineView.o] Error 1
> make[1]: Leaving directory
> `/tmp/PyQt-gpl-5.5.1-snapshot-698e32887e28/QtWebEngineWidgets'
> make: *** [sub-QtWebEngineWidgets-make_first-ordered] Error 2
> 
> 
> Can somebody help? Thanks!

I tried to reproduce this with CentOS 6.7 at the weekend but failed to 
notice
that the QtWebEngineWidgets module needs a version of gcc that's later 
than
the one supplied with the OS. It's not really related to the problem you 
have
found, but which version of gcc are you using?

David


More information about the PyQt mailing list