关闭

Meego开发环境配置...

标签: meegocommandextensionpasswordsnokiaterminal
893人阅读 评论(0) 收藏 举报

 

Notes: [desktop$:]means you should run this command outside scratchbox, and [sbox$:] means run this command in scratchbox;

 

1.[desktop$:]sudo gedit /etc/sysctl.conf, then copy the following text to it:

vm.mmap_min_addr = 4096 net.ipv4.ip_local_port_range = 1024 65535 vm.vdso_enabled = 0

 

2.[desktop$:] sudo gedit /etc/apt/sources.list, then copy the follow text to it:

deb http://maemo.research.nokia.com/repository/scratchbox 1.0/

 

if you are outside nokia, use: 

deb https://files.maemo.org/repository/scratchbox 1.0/

 

3.[desktop$:] sudo apt-get update

 

4.Install the following packages:

[desktop$:] sudo apt-get install maemo-assistant   scratchbox-core   scratchbox-libs   scratchbox-devkit-cputransp   scratchbox-devkit-qemu   scratchbox-devkit-debian-squeeze   scratchbox-devkit-hashutils-squeeze   scratchbox-devkit-perl   scratchbox-toolchain-cs2007q3-glibc2.5-i486   scratchbox-toolchain-cs2009q3-eglibc2.10-armv7-hard   scratchbox-toolchain-cs2009q3-eglibc2.10-i486

 

Waitting...(long time)...

 

5.To add your username:

[desktop$:] sudo /scratchbox/sbin/sbox_adduser <USERNAME> yes, then enter the passwords

 

6.For the group membership to be effective in your current terminal session, run the following command: 

[desktop$:]newgrp sbox

 

7.[desktop$:]dpkg -l | grep scratchbox

 

8.[desktop$:] sudo apt-get install matchbox-window-manager xcompmgr

 

9.[desktop$:]sudo apt-get install xserver-xephyr

 

10. [desktop$:]Xephyr :2 -host-cursor -screen 864x480x16 -dpi 96 -ac +accessx +kb +extension Composite &

 

Waitting...

 

11.Install the meego target:

[desktop$:]  maemo-assistant harmattan -A -a x86 -s -t <targetName>

 

12.Then enter the scratchbox:

[desktop$:] newgrp sbox

[desktop$:] scratchbox

 

13.[sbox$:] fakeroot apt-get update

 

14.The following command are all run inside scratchbox:

fakeroot apt-get install libgl1 libgl-dev

 fakeroot apt-get install libqt4-dev libmeegotouchcore0 duihomescreen libqt4-opengl-dev meego-sb-session libicu-dev libcontextprovider-dev libcontextsubscriber-dev

 fakeroot apt-get install  xt9-essential-plugins

 fakeroot apt-get install meegofeedback-pulseaudio meegofeedback-reactionmap libmeegoreactionmap0 meegofeedbackd

 fakeroot apt-get install libmeegoimenginewords0 meego-imengine-xt9 mcompositor libmeegoimframework0 meego-im-uiserver meego-keyboard

 fakeroot apt-get install libduicontrolpanel-dev libmeegoreactionmap-dev libxcomposite-dev libxext-dev

 fakeroot apt-get install meegotouch-demos-widgetsgallery

 fakeroot apt-get install ui-fonts

 fakeroot apt-get install libmeegoimframework-dev libmeegoimframework0-dbg

 

Now, the configure progress is finished, then start the X-server and the ui-server:

15.And then start the X-server:

[desktop$:]DISPLAY=:0 Xephyr :2 -host-cursor -screen 864x480x16 -dpi 96 -ac +accessx +extension Composite & 

sleep 2

matchbox-window-manager -use_titlebar no -display :2 &

sleep 1

xcompmgr -d :2 &

 

If you don't like meego-sb-session to start input method for you. Remove /etc/meego-sb-session/session.enabled/20input-method file. And start input method manually.

 

[desktop$:]pkill meego-im-ui

[desktop$:]meego-im-uiserver -software -bypass-wm-hint -output-level debug

 

16.Start the ui-server:

[sbox$:]meego-sb-session start

export DISPLAY:=2

source /tmp/session_bus_address.user

pkill mdecorator

widgetsgallery -software&

 

17.Then in the project development process, you can use:

[sbox$:] meego-im-uiserver -software -bypass-wm-hint -output-level debug

 

 

 

 

 

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:643836次
    • 积分:7720
    • 等级:
    • 排名:第2707名
    • 原创:193篇
    • 转载:102篇
    • 译文:0篇
    • 评论:91条
    最新评论