[PyQt] Handling PyQT/PyKDE4 on ARM

Phil Thompson phil at riverbankcomputing.com
Sun Dec 14 21:55:55 GMT 2008

On Sun, 14 Dec 2008 15:47:06 -0500, "Michael Casadevall"
<sonicmctails at gmail.com> wrote:
> Hash: SHA1
> Hello,
> I'm working to build and port KDE to the ARM architecture for Kubuntu
> Jaunty, and although I've made some progress, I've had some seriously
> issues with PyQt4 and PyKDE4. The main issue steams from the fact that
> on the ARM architecture (as well as non-FPU architectures like MIPS),
> qreal becomes a float vs a double. This causes a few issues.
> Internally, PyQT4 uses qreals in its bindings for QLists, and so
> forth. Although this works fine when qreal is a double since a float
> will be converted implicatively, when it is a float, it looses the
> ability to handle doubles since float is smaller than double. I
> believe the solution is to remove explicate qreals, and handle both
> float and double separately.
> Secondly, in some cases, sip tries to pass double points into qreals,
> which breaks miserably on ARM. This happens when building plasma's
> bindings. This happens when building a widget derived from
> QGraphicsView, and that widget hasn't overridden getContetMargins.
> getContentMargins accepts four qreal pointers, and sip tries to pass
> in four double ones. I can provide the generated code in this
> instance.
> I can provide access to relatively fast ARM hardware to help handle
> porting work and so forth, if anyone is interested in working on
> resolving this issue.

What versions of SIP and PyQt are you using? Current versions build fine on
Maemo which is ARM based.


More information about the PyQt mailing list