Maemo开发环境的搭建和运行

4 篇文章 0 订阅

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值