现在的位置: 首页 > 综合 > 正文

Maemo开发环境的搭建和运行

2013年08月06日 ⁄ 综合 ⁄ 共 2365字 ⁄ 字号 评论关闭

this installation is for Ubuntu.

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

抱歉!评论已关闭.