[PyQt] Handling PyQT/PyKDE4 on ARM

Michael Casadevall sonicmctails at gmail.com
Sun Dec 14 22:09:15 GMT 2008


I'm sorry, I wasn't clear, PyQT and sip build fine, they die however
when handling kde4bindings, or other programs that use qreals in
containers such as QLists.

For versions:
PyQT - 4.4.4
sip - 4.7.9
kde4bindings - 4.1.80
Michael

On Sun, Dec 14, 2008 at 4:55 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Sun, 14 Dec 2008 15:47:06 -0500, "Michael Casadevall"
> <sonicmctails at gmail.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> 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.
>
> Phil
>


More information about the PyQt mailing list