[PyQt] Handling PyQT/PyKDE4 on ARM
sonicmctails at gmail.com
Sun Dec 14 20:47:06 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
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
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the PyQt