[maemo-developers] how to port a software based on QT to N800?

From: Manoël Trapier mtrapier at nexwave-solutions.com
Date: Thu Jun 14 12:54:39 EEST 2007
Le jeudi 14 juin 2007 à 10:51 +0200, Harald Fernengel a écrit :
> Hi,
> 
> On Wednesday 13 June 2007 16:39:31 Markus Wagner wrote:
> > PS: Anybody has patches for Qt4.3 ?! (Seems to have multiple issuses with
> > ARM/ARMEL)
> 
> I built the 4.3.0 snapshot a while ago without any trouble.
> 
> As far as I remember I built Qt first for the host (i386), then changed 
> scratchbox to the ARM target, reconfigured and built only the libraries. That 
> way, the host tools (moc, uic, rcc) don't have to run in the QEMU emulation.

There is at least 1 big bug with ARM on QT 4.2.x (and 4.3.x). QT define
the type qreal to be float instead of double, and a lot of functions
want a double and not a qreal. And remove this tend to add a new bug in
qtestcase.h where a function is redefined when we compile for arm for
'supporting' qreal=float.. So the C++ compiler complain about a
redefinition.

I add here a patch for QT 4.2.3 (should be OK for other version) which
patch 3 things, the two bug I speak about before, and modifiy the qmake
build file for use host-* tools instead of their ARM conterparts.

Manoel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-x11-4.2.3-scratchbox.patch
Type: text/x-patch
Size: 2179 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070614/3529768e/attachment.bin 
More information about the maemo-developers mailing list