Qt4 Maemo Binding

From Lazarus wiki
Jump to navigationJump to search

Qt4 Maemo Binding

This page describes the Free Pascal Qt4 Binding for Maemo. Currently Maemo5 on N900 PR1.2 is supported.

Introduction

To develop with Qt for the N900, the scratchbox based Maemo SDK is used. The Free Pascal binding is technically a Qt C++ library, so to compile this binding library, the Qt Maemo Scratchbox instructions by Nokia should suffice. However if you use the provided binary of the FreePascal Binding for Maemo, you do not need to install the scratchbox environment.


Compilation of the binding

These instructions explain how to compile the Free Pascal Qt4 Binding for Maemo sources.


  • Install the scratchbox based Maemo5 SDK: Maemo5 SDK Installation
  • After installation, start as root scratchbox: /scratchbox/sbin/sbox_ctl start
  • As normal user login: /scratchbox/login
  • select using sb-menu the arm environment
  • install the Qt4 devel package
    • fakeroot apt-get update
    • fakeroot apt-get install libqt4-dev
  • download (e.g. using wget) and unpack the sources
  • cd into the sources directory
  • qmake (creates Makefile)
  • make (compiles)
  • strip LibraryFileName (reduce filesize)
  • fakeroot make install (installs in scratchbox)

Installation on the N900 device