Minimo/zh tw

From Openmoko

(Difference between revisions)
Jump to: navigation, search
m (-guides)
 
(7 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
= 安裝Minimo web 瀏覽器 =
 
= 安裝Minimo web 瀏覽器 =
  
[http://www.mozilla.org/projects/minimo/develop.html Minimo] 是a Mozilla based web瀏覽器。它的特色在於完全支援[http://en.wikipedia.org/wiki/Ajax_%28programming%29 AJAX] 及其它元件。 Currently stock Openmoko build doesn't include Minimo. Here are instructions on how to run minimo in Xephyr PC environment and how to use other third party packages too.
+
[http://www.mozilla.org/projects/minimo/develop.html Minimo] 是a Mozilla based web瀏覽器。它的特色在於完全支援[http://en.wikipedia.org/wiki/Ajax_%28programming%29 AJAX] 及其它元件。 目前的Openmoko build並不包含Minimo。以下是如何在Xephyr PC環境下如何執行minimo及如何使用其它third party軟體的操作指引。
  
 
* [http://bec-systems.com/web/content/view/79/9/ Instructions for including new OpenEmbedded packages to your project]
 
* [http://bec-systems.com/web/content/view/79/9/ Instructions for including new OpenEmbedded packages to your project]
  
These instructions should be updated to use a custom image rather than DISTRO_EXTRA_RDEPENDS -- see link above.
+
這些操作指引應該更新到使用客製化的映像檔,而不是 DISTRO_EXTRA_RDEPENDS -- 請參考以上的連結。
  
== Setup build environment ==
+
== 設定build 環境 ==
  
If you have built your OpenMoko using MokoMakefile some of these steps might not be familiar to you.
+
如果你已經使用MokoMAkefile建立了Openmoko ,那下面的操作你可能不會太熟悉。
  
Assume your OpenMoko root is at ~/workspace/moko
+
假設你的Openmoko root 位於 ~/workspace/moko
  
First setup build environment variables:
+
首先設定build環境變數:
 
<pre>
 
<pre>
 
moo@hacker:~/workspace/moko/build$ . ../setup-env  
 
moo@hacker:~/workspace/moko/build$ . ../setup-env  
 
</pre>
 
</pre>
  
Then checkout minimo from OpenEmbedded repository:
+
接著,從OpenEmbedded放置的位子查看minimo:
 
<pre>
 
<pre>
 
moo@hacker:~/workspace/moko/build$ bitbake minimo
 
moo@hacker:~/workspace/moko/build$ bitbake minimo
 
</pre>
 
</pre>
  
Edit local.conf and add minimo to build dependencies list.
+
編輯 local.conf ,並將minimo 加入build 附屬清單中。
  
 
<pre>
 
<pre>
Line 40: Line 40:
 
</pre>
 
</pre>
  
After local.conf has added new packages, one must refresh bitbake tasks.
+
在local.conf 已加入新的套件之後,必須更新bitbake tasks。
  
 
<pre>
 
<pre>
Line 46: Line 46:
 
</pre>
 
</pre>
  
Now, you should be able to rebuild root fs using MokoMakefile.
+
現在,你必須使用MokoMakefile重新更新root fs。
  
 
<pre>
 
<pre>
Line 54: Line 54:
 
== Tips ==
 
== Tips ==
  
The default OpenMoko distribution lacks ''/etc/resolv.conf'' file which is used to configure system DNS look-up. Without this file, failing  domain name look-up prevents web browsing. The easiest way to fix is to copy the host system resolv.conf to the rootfs.
+
預設的Openmoko 套件缺少了 ''/etc/resolv.conf''檔案,它是用來設定DNSlook-up。沒有這個檔案的話,會無法找到網域,因此無法進行瀏覽網頁的工作。修補這個問題的最好方法是,將主機系統上的 resolv.conf 複製到 rootfs。
  
 
<pre>
 
<pre>
Line 61: Line 61:
  
  
If build fails with
+
若發生以下的錯誤
  
 
<pre>
 
<pre>
 
/usr/bin/ld: skipping incompatible $OMDIR/local/tmp/staging/arm-angstrom-linux-gnueabi/lib/libIDL-2.a when searching for -lIDL-2
 
/usr/bin/ld: skipping incompatible $OMDIR/local/tmp/staging/arm-angstrom-linux-gnueabi/lib/libIDL-2.a when searching for -lIDL-2
 
</pre>
 
</pre>
(here minimo is installed in a [http://wiki.openmoko.org/wiki/Application_Development_Crash_Course#Setting_Up_a_Local_Overlay Local Overlay], so your path will perhaps differ) try installing the libidl-dev package on the buildhost:
+
(在這裡,minimo被安裝在 [http://wiki.openmoko.org/wiki/Application_Development_Crash_Course#Setting_Up_a_Local_Overlay Local Overlay],因此,你的路徑也許會有些不同) 請試著在buildhost主機上安裝libidl-dev 套件:
  
 
<pre>
 
<pre>
Line 72: Line 72:
 
</pre>
 
</pre>
  
== In chroot'ed environment ==
+
== 在chroot'ed 環境下 ==
  
Following instructions in [[Getting OpenMoko working on host with Xephyr]] to get yourself chroot'ed into OpenMoko environment.
+
[[Getting Openmoko working on host with Xephyr]] 的操作指引為你的Openmoko環境取得chroot'ed。啟動Xephyr。你不需要啟動Openmoko session,minimo 則可以像是啟動了Openmoko session般執行。
 
+
Start Xephyr. You don't need to start OpenMoko session, minimo can run as is.
+
  
 
<pre>
 
<pre>
Line 82: Line 80:
 
</pre>
 
</pre>
  
 
+
[[Category:Applications/zh tw]]
[[Category:Software ]]
+
[[Category:Applications]]
+
[[Category:Guides]]
+

Latest revision as of 23:03, 12 September 2008


minimo in QEMU displaying it.slashdot.org
minimo on GTA01 displaying www.heise.de

Contents

[edit] 安裝Minimo web 瀏覽器

Minimo 是a Mozilla based web瀏覽器。它的特色在於完全支援AJAX 及其它元件。 目前的Openmoko build並不包含Minimo。以下是如何在Xephyr PC環境下如何執行minimo及如何使用其它third party軟體的操作指引。

這些操作指引應該更新到使用客製化的映像檔,而不是 DISTRO_EXTRA_RDEPENDS -- 請參考以上的連結。

[edit] 設定build 環境

如果你已經使用MokoMAkefile建立了Openmoko ,那下面的操作你可能不會太熟悉。

假設你的Openmoko root 位於 ~/workspace/moko

首先設定build環境變數:

moo@hacker:~/workspace/moko/build$ . ../setup-env 

接著,從OpenEmbedded放置的位子查看minimo:

moo@hacker:~/workspace/moko/build$ bitbake minimo

編輯 local.conf ,並將minimo 加入build 附屬清單中。

MACHINE = "qemux86"
DISTRO = "openmoko"
BUILD_ARCH = "i686"
INHERIT += " devshell"
SRCDATE_eds-dbus = "now"
DISTRO_EXTRA_RDEPENDS = "minimo"

在local.conf 已加入新的套件之後,必須更新bitbake tasks。

bitbake task-base -crebuild

現在,你必須使用MokoMakefile重新更新root fs。

make openmoko-devel-image

[edit] Tips

預設的Openmoko 套件缺少了 /etc/resolv.conf檔案,它是用來設定DNSlook-up。沒有這個檔案的話,會無法找到網域,因此無法進行瀏覽網頁的工作。修補這個問題的最好方法是,將主機系統上的 resolv.conf 複製到 rootfs。

moo@hacker:~/workspace/moko$ cp /etc/resolv.conf rootfs/etc/resolv.conf


若發生以下的錯誤

/usr/bin/ld: skipping incompatible $OMDIR/local/tmp/staging/arm-angstrom-linux-gnueabi/lib/libIDL-2.a when searching for -lIDL-2

(在這裡,minimo被安裝在 Local Overlay,因此,你的路徑也許會有些不同) 請試著在buildhost主機上安裝libidl-dev 套件:

sudo aptitude install libidl-dev

[edit] 在chroot'ed 環境下

Getting Openmoko working on host with Xephyr 的操作指引為你的Openmoko環境取得chroot'ed。啟動Xephyr。你不需要啟動Openmoko session,minimo 則可以像是啟動了Openmoko session般執行。

/ $ minimo  
Personal tools


minimo in QEMU displaying it.slashdot.org
minimo on GTA01 displaying www.heise.de

安裝Minimo web 瀏覽器

Minimo 是a Mozilla based web瀏覽器。它的特色在於完全支援AJAX 及其它元件。 Currently stock Openmoko build doesn't include Minimo. Here are instructions on how to run minimo in Xephyr PC environment and how to use other third party packages too.

These instructions should be updated to use a custom image rather than DISTRO_EXTRA_RDEPENDS -- see link above.

Setup build environment

If you have built your OpenMoko using MokoMakefile some of these steps might not be familiar to you.

Assume your OpenMoko root is at ~/workspace/moko

First setup build environment variables:

moo@hacker:~/workspace/moko/build$ . ../setup-env 

Then checkout minimo from OpenEmbedded repository:

moo@hacker:~/workspace/moko/build$ bitbake minimo

Edit local.conf and add minimo to build dependencies list.

MACHINE = "qemux86"
DISTRO = "openmoko"
BUILD_ARCH = "i686"
INHERIT += " devshell"
SRCDATE_eds-dbus = "now"
DISTRO_EXTRA_RDEPENDS = "minimo"

After local.conf has added new packages, one must refresh bitbake tasks.

bitbake task-base -crebuild

Now, you should be able to rebuild root fs using MokoMakefile.

make openmoko-devel-image

Tips

The default OpenMoko distribution lacks /etc/resolv.conf file which is used to configure system DNS look-up. Without this file, failing domain name look-up prevents web browsing. The easiest way to fix is to copy the host system resolv.conf to the rootfs.

moo@hacker:~/workspace/moko$ cp /etc/resolv.conf rootfs/etc/resolv.conf


If build fails with

/usr/bin/ld: skipping incompatible $OMDIR/local/tmp/staging/arm-angstrom-linux-gnueabi/lib/libIDL-2.a when searching for -lIDL-2

(here minimo is installed in a Local Overlay, so your path will perhaps differ) try installing the libidl-dev package on the buildhost:

sudo aptitude install libidl-dev

In chroot'ed environment

Following instructions in Getting OpenMoko working on host with Xephyr to get yourself chroot'ed into OpenMoko environment.

Start Xephyr. You don't need to start OpenMoko session, minimo can run as is.

/ $ minimo