MADDE + Qt 4.7

Maemo 5 PR 1.2 is out with Qt 4.6.2  installed, so developers now can create applications with Qt 4.6 using either the official scratchbox based SDK or MADDE (remember, “MADDE is currently a technology preview.”)

BUT… there are people who prefer “Livin’ on the Edge“. If you are one of those and already want/need to develop with Qt 4.7 (not released yet!) for Maemo 5, using MADDE to build your applications / packages, here is an update to the procedure first published by the troll Harald Fernengel (AKA harryF). Although the title says “on MacOS X”, the steps also work on Linux.

Step-by-step:

  • Install MADDE. Download it here.
  • If you are not using a Debian based distro, you need to install the “Tools for Debian Packages” package of your distribution (e.g. “deb” on openSUSE, sys-apps/debianutils on Gentoo).
  • Download the script fetch-qt4.7.0-latest.sh. This script downloads the libqt4-experimental packages from repository.maemo.org and installs then in your MADDE – Before you run the script, remember to adjust the MADDE_PATH variable according to the path you installed MADDE.
  • Download qt4-tools-latest.tar.gz. It contains the Qt tools compiled for the correspondent version, configured for cross compiling. Extract to /opt/qt4-maemo5.
  • Check if mad is in your PATH.

To build an application using your fresh environment, run /opt/qt4-maemo5/bin/qmake && make .

If you succeeded in the setup process, this should result in a armel binary ready to run on N900. To generate a deb package, you can use the tools offered by MADDE to build a skeleton of debian package and so on.

To run your application on N900, install libqt4-experimental-* packages. If QtQuick (QML) is part of your plans, qmlviewer  is in the package qt4-experimental-declarative-qmlviewer .

UPDATE (2010-06-15): For newer (or older) versions, check http://anselmolsm.org/public/qt/madde-qt47/

UPDATE (2010-09-09): Links updated to download the latest version.

Qt Mobile Demos in extras-devel

A small post.

In the first season, the focus was S60 devices. After the holidays, the new season is about Maemo. =)

Qt Mobile Demos are in Maemo 5 extras-devel, so now it’s easier to check them in a N900 near you. First, you need to enable the extras-devel repository/catalogue and the demos should appear if you search for “qtmobile”.

The packages are:

hyperui -> qtmobiledemo-hyperui

mybudget -> qtmobiledemo-mybudget

shoplist -> qtmobiledemo-shoplist

weather -> qtmobiledemo-weather

Future? Well, soon QAbstractKineticScroller will replace our kinetic list implementation. (Read the comments).

And yes, we have a list of known issues to solve in our free time…

The code still in the same place, http://qt.gitorious.org/qt-labs/mobile-demos

That’s all for today.

PS: Thanks to Etrunko, who helped a lot with packaging stuff =)