Meego开发环境配置...
2011-01-21 14:04
316 查看
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
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
相关文章推荐
- meego-handset开发环境配置
- 配置 MeeGo QUEM Netbook 开发环境
- ubuntu配置meego+qemu开发环境
- Windows下Android开发环境配置
- PHP移动互联网开发(1)——环境搭建及配置
- C#开发OpenGL环境配置
- Eclipse&Spring开发开发环境配置
- 在eclipse里配置Hadoop开发环境
- JavaMail学习笔记(二)、JavaMail API简介和配置开发环境
- 详解从零开始配置汇编开发环境(DosBox,MasmPlus)
- Emacs 配置Clojure开发环境一 clojure-mode
- 【OpenCV入门教程之一】 OpenCV 2.4.8 +VS2010的开发环境配置
- android 最新 NDK r8 在window下开发环境搭建 安装配置与使用 详细图文讲解,完整实际配置过程记录
- Eclipse下配置C/C++开发环境
- Kinect开发(二) 基于C# WPF的Kinect开发环境配置
- 使用MyEclipse开发JSP环境配置详解
- Storm开发——环境配置部署
- 自学Node.js: WebStorm+Node.js开发环境的配置
- Android 开发环境配置图文教程(jdk+eclipse+android sdk)