Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2010-06

Draft FreePascal Maemo binding

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Den Jean

Hi,

I created a Qt binding for the Maemo 5 Qt 4.6.2 (N900 PR 1.2)

* http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_bin-qt4pas- V2.2RC_Qt4.6.2.tar.gz
* http://users.telenet.be/Jan.Van.hijfte/qtforfpc/splitbuild-maemo5_qt4pas- V2.2RC_Qt4.6.2.tar.gz
* http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_demos- V2.2RC_Qt4.6.2.tar.gz

This binding can already be used to create Free Pascal Qt4 Maemo5 applications. Screenshot of small included demo: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_qt4.png

However Lazarus LCL/Qt needs some changes to allow for Lazarus LCL/Qt Maemo applications

The following screenshot shows a LCL/Qt Maemo sample. When the application is run with another style (./project1 -style plastik) the application looks identical to the designer representation. http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_lcl_qt4.png

Patch for Lazarus:
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo.diff.txt.tar.gz

The patch accommodates for the following:

* Qt on N900 Maemo5 is compiled w/o support for:
- printing
- trayicon

* Qt on N900 Maemo is compiled w/o deprecated functions. The following list shows the deprecated functions used by LCL/Qt and their new counterpart.
- QRegion_numRects -> QRegion_rectCount
- QImage_numBytes -> QImage_byteCount
- QPaintDevice_numColors -> QPaintDevice_colorCount

I acknowledge that the patch can be considered as
fairly intrusive, if you know a better way, be my guest.

Detailed instructions are not ready yet for this Release Candidate. For the adventurous:
- the binding can be compiled in scratchbox. It is just Qt C++ code, no need for fpc in scratchbox. Nokia has excellent documentation for the installation of scratchox. After a full installation do a fakeroot apt-get install libqt4-dev
- copy the library to /opt/usr/lib and make links to /usr/lib ("optify").
- Strip the library first to shave of some bytes.
- compilation can be done on the device (fast enough) or using fpc cross compilation outside scratchbox. Add a -dMAEMO5 to ppcarm to enable the maemo specific functions in qt4.pas.

kind regards,

Den Jean

ik
to Den Jean

Will it also work on MeeGo ?

Ido

Den Jean wrote 66 lines
Hi, I created a Qt binding for the Maemo 5 Qt 4.6.2 (N900 PR 1.2) * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_bin-qt4pas- V2.2RC_Qt4.6.2.tar.gz * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/splitbuild-maemo5_qt4pas- V2.2RC_Qt4.6.2.tar.gz * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_demos- V2.2RC_Qt4.6.2.tar.gz This binding can already be used to create Free Pascal Qt4 Maemo5 applications. Screenshot of small included demo: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_qt4.png However Lazarus LCL/Qt needs some changes to allow for Lazarus LCL/Qt Maemo applications The following screenshot shows a LCL/Qt Maemo sample. When the application is run with another style (./project1 -style plastik) the application looks identical to the designer representation. http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_lcl_qt4.png Patch for Lazarus: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo.diff.txt.tar.gz The patch accommodates for the following: * Qt on N900 Maemo5 is compiled w/o support for: - printing - trayicon * Qt on N900 Maemo is compiled w/o deprecated functions. The following list shows the deprecated functions used by LCL/Qt and their new counterpart. - QRegion_numRects -> QRegion_rectCount - QImage_numBytes -> QImage_byteCount - QPaintDevice_numColors -> QPaintDevice_colorCount I acknowledge that the patch can be considered as fairly intrusive, if you know a better way, be my guest. Detailed instructions are not ready yet for this Release Candidate. For the adventurous: - the binding can be compiled in scratchbox. It is just Qt C++ code, no need for fpc in scratchbox. Nokia has excellent documentation for the installation of scratchox. After a full installation do a fakeroot apt-get install libqt4-dev - copy the library to /opt/usr/lib and make links to /usr/lib ("optify"). - Strip the library first to shave of some bytes. - compilation can be done on the device (fast enough) or using fpc cross compilation outside scratchbox. Add a -dMAEMO5 to ppcarm to enable the maemo specific functions in qt4.pas. kind regards, Den Jean _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20100610/c532ab1f/attachment.html>

Den Jean
to ik
ik wrote
Will it also work on MeeGo ?

That would require some work and a MeeGo device.
But this is a good base to more easily add MeeGo support. I have no tried yet to install MeeGo on the N900,
anyhow MeeGo will not be officially supporting N900. MeeGo probably will be Qt 4.7.

Kjow
to Den Jean: I created a Qt binding for the Maemo 5 Qt 4.6.2 (N900 PR 1.2) *…

WOW, thank you!

I will try as soon as possible, in this period I have no time for developing on N900...

2010/6/10 Den Jean :

Show quoted text 65 lines
Hi, I created a Qt binding for the Maemo 5 Qt 4.6.2 (N900 PR 1.2) * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_bin-qt4pas- V2.2RC_Qt4.6.2.tar.gz * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/splitbuild-maemo5_qt4pas- V2.2RC_Qt4.6.2.tar.gz * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_demos- V2.2RC_Qt4.6.2.tar.gz This binding can already be used to create Free Pascal Qt4 Maemo5 applications. Screenshot of small included demo: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_qt4.png However Lazarus LCL/Qt needs some changes to allow for Lazarus LCL/Qt Maemo applications The following screenshot shows a LCL/Qt Maemo sample. When the application is run with another style (./project1 -style plastik) the application looks identical to the designer representation. http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_lcl_qt4.png Patch for Lazarus: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo.diff.txt.tar.gz The patch accommodates for the following: * Qt on N900 Maemo5 is compiled w/o support for: ?- printing ?- trayicon * Qt on N900 Maemo is compiled w/o deprecated functions. ? The following list shows the deprecated functions used by ? LCL/Qt and their new counterpart. ?- QRegion_numRects -> QRegion_rectCount ?- QImage_numBytes -> QImage_byteCount ?- QPaintDevice_numColors -> QPaintDevice_colorCount I acknowledge that the patch can be considered as fairly intrusive, if you know a better way, be my guest. Detailed instructions are not ready yet for this Release Candidate. For the adventurous: - the binding can be compiled in scratchbox. It is just Qt C++ code, ?no need for fpc in scratchbox. Nokia has excellent documentation ?for the installation of scratchox. After a full installation do a ?fakeroot apt-get install libqt4-dev - copy the library to /opt/usr/lib and make links to /usr/lib ("optify"). - Strip the library first to shave of some bytes. - compilation can be done on the device (fast enough) or using ?fpc cross compilation outside scratchbox. Add a -dMAEMO5 to ?ppcarm to enable the maemo specific functions in qt4.pas. kind regards, Den Jean _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
Kjow
to ik: Will it also work on MeeGo ? Ido -------------- next part -------------- An HTML…

Teorically, Maemo 5 pr1.2 and MeeGo are fully compatible... anyway both are arm-linux-qt (I read that meego will start with qt 4.6.2, as Maemo)

Initially QT libs weren't planned for Maemo, Nokia changed plans with MeeGo (merging Harmattan/Maemo 6).

2010/6/10 ik :

Show quoted text 80 lines
Will it also work on MeeGo ? Ido On Thu, Jun 10, 2010 at 22:59, Den Jean wrote: > > Hi, > > I created a Qt binding for the Maemo 5 Qt 4.6.2 (N900 PR 1.2) > > * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_bin-qt4pas- > V2.2RC_Qt4.6.2.tar.gz > * > http://users.telenet.be/Jan.Van.hijfte/qtforfpc/splitbuild-maemo5_qt4pas- > V2.2RC_Qt4.6.2.tar.gz > * http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo5_demos- > V2.2RC_Qt4.6.2.tar.gz > > This binding can already be used to create Free Pascal > Qt4 Maemo5 applications. Screenshot of small included demo: > http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_qt4.png > > However Lazarus LCL/Qt needs some changes to allow for > Lazarus LCL/Qt Maemo applications > > The following screenshot shows a LCL/Qt Maemo sample. > When the application is run with another style (./project1 -style plastik) > the application looks identical to the designer representation. > http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo_lcl_qt4.png > > Patch for Lazarus: > http://users.telenet.be/Jan.Van.hijfte/qtforfpc/maemo.diff.txt.tar.gz > > The patch accommodates for the following: > > * Qt on N900 Maemo5 is compiled w/o support for: > ?- printing > ?- trayicon > > * Qt on N900 Maemo is compiled w/o deprecated functions. > ? The following list shows the deprecated functions used by > ? LCL/Qt and their new counterpart. > ?- QRegion_numRects -> QRegion_rectCount > ?- QImage_numBytes -> QImage_byteCount > ?- QPaintDevice_numColors -> QPaintDevice_colorCount > > I acknowledge that the patch can be considered as > fairly intrusive, if you know a better way, be my guest. > > Detailed instructions are not ready yet for this Release Candidate. > For the adventurous: > - the binding can be compiled in scratchbox. It is just Qt C++ code, > ?no need for fpc in scratchbox. Nokia has excellent documentation > ?for the installation of scratchox. After a full installation do a > ?fakeroot apt-get install libqt4-dev > - copy the library to /opt/usr/lib and make links to /usr/lib ("optify"). > - Strip the library first to shave of some bytes. > - compilation can be done on the device (fast enough) or using > ?fpc cross compilation outside scratchbox. Add a -dMAEMO5 to > ?ppcarm to enable the maemo specific functions in qt4.pas. > > kind regards, > > Den Jean > > > > _______________________________________________ > Qt mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/qt _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt