[PyQt] Compiling PyQt5 on a Raspberry Pi

Dmitry Shachnev mitya57 at gmail.com
Mon Aug 5 17:24:24 BST 2013


This is not specific to Raspbian, but happens on all systems
where qreal == float (i.e. all ARM systems). This particular
issue happens because in qbrush.sip we have:

  typedef QVector<QPair<double, QColor>> QGradientStops;

while in Qt 5.1 qreal is used instead of double:

  typedef QPair<qreal, QColor> QGradientStop;
  typedef QVector<QGradientStop> QGradientStops;

However, this is not the only issue that makes the build fail.
In Debian, we have a patch that fixes more issues. We haven't
yet finished updating it for PyQt5, so it doesn't fully solve
the problem (any help in finalizing it is appreciated). I have
attached the current version of that patch.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qreal_float_support.diff
Type: text/x-diff
Size: 6155 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130805/f9dd7425/attachment-0001.diff>


More information about the PyQt mailing list