Development Environment of Maemo

景安翔
2023-12-01

You can find online document on:
http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation

(1) At first you should install Xephyr :
apt-get install xserver-xephyr

(2) Installing Maemo 5 SDK:
1.download two install file from NOKIA:
maemo-scratchbox-install_5.0.sh 
maemo-sdk-install_5.0.sh

2.change mode and install SDK:
$ chmod a+x ./maemo-scratchbox-install_5.0.sh  ./maemo-sdk-install_5.0.sh
$ sudo ./maemo-scratchbox-install_5.0.sh -u USER
$ newgrp sbox
$ ./maemo-sdk-install_5.0.sh
$ /scratchbox/login

3.Accept the EULA on:
http://tablets-dev.nokia.com/eula/index.php

4.Install Scratchbox:
N.B. $ /scratchbox/login this can login scratchbox;

[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
[sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list  # add deb line
[sbox-FREMANTLE_ARMEL: ~] > apt-get update
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps

[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86
[sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list  # add deb line
[sbox-FREMANTLE_X86: ~] > apt-get update
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps

(3) Starting/Shutting down the SDK UI

Before starting the UI framework, ensure that you have installed the following:

    * Xephyr X11 server on the host machine outside the Scratchbox environment
    * The SDK as described above
    * The Nokia proprietary binary packages

1. Now, run Xephyr outside the scratchbox environment:

$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &


2. Login to Scratchbox X86 target

$ /scratchbox/login

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.

See /scratchbox/doc/ for documentation.

[sbox-FREMANTLE_X86: ~]>


3. Set the DISPLAY variable to match the display setting given for the Xephyr server.

[sbox-FREMANTLE_X86: ~] >export DISPLAY=:2


4. Start the UI framework .

[sbox-FREMANTLE_X86: ~] >af-sb-init.sh start


5. You will now see the UI framework up and running on the Xephyr window.

6. You can shut down the UI framework as follows:

[sbox-FREMANTLE_X86: ~] >af-sb-init.sh stop

(4) Order to switch the ARM to X86: sb-conf select FREMANTLE_ARMEL

(5) Install qt library in maemo:
1.add source to sources.list:
deb http://repository.maemo.org/extras/ diablo free non-free
deb-src http://repository.maemo.org/extras/ diablo free
deb http://repository.maemo.org/extras-devel/ diablo free non-free
deb-src http://repository.maemo.org/extras-devel/ diablo free

2.use apt-get to install qt library for X86 and ARM:
fakeroot apt-get install libqt4-core
fakeroot apt-get install libqt4-gui
fakeroot apt-get install libqt4-dev

(6) Install QT application to Maemo:
1. Install Qt package in device.
there is two way to add source to device:
one way is add source to sources.list file:
deb http://repository.maemo.org/extras/ diablo free non-free
deb-src http://repository.maemo.org/extras/ diablo free
deb http://repository.maemo.org/extras-devel/ diablo free non-free
deb-src http://repository.maemo.org/extras-devel/ diablo free
the another way is add source  by Application Manager: menu -> Application Catalogue
Catalogue name: Extras‐devel
Web address: http://repository.maemo.org/extras‐devel
Distribution: fremantle
Components: free non‐free
2.Open an ssh session with the device:
PC_$> ssh root@DEVICE-IP
3.To install the Qt binaries, run:
#apt-get install libqt4-gui
#apt-get install libqt4-webkit libqt4-opengl libqt4-dbus

 类似资料:

相关阅读

相关文章

相关问答