全部博文(413)
分类: LINUX
2008-10-20 09:59:25
Browser based on Mozilla
HomePage:
Docs: docs
1 Browser extensions
Development: docs/extension_development_howto.html
2 XPCOM Components develop
a) Build MicroB engine to get Browser SDK
b) Create XPCOM components source code and make file as that described on
and
http://guohuan.blogspot.com/2008/04/using-gecko-19-to-build-xpcom.html
c) Copy .xpt and .so to /usr/lib/microb-engine/components
d) rm /home/usr/.mozilla/microb/xpti.dat
e) rm /home/usr/.mozilla/microb/compreg.dat
f) touch /home/user/.mozilla/microb/.auto.reg
g) restart browser twice
3 How to Build MicroB-engin
Reference:
http://www.mail-archive.com/maemo-developers@maemo.org/msg12314.html
docs/build_howto.html
1) install libidl (libidl0 & libidl-dev)
a) svn co libidl
b) cd libidl
c) dpkg-buildpackage -rfakeroot -uc -us -tc | tee libidl-build.log
d) cd ..
e) fakeroot dpkg -i libidl0*.deb
f) fakeroot dpkg -i libidl-dev*.deb
If you get problems with building libidl, because you lack flex then read this bug report:
2) install libcairo2-dev
fakeroot apt-get install libcairo2-dev
3) install bc
fakeroot dpkg -i bc-package-name.deb
Comments: I don't kown where to find bc-package-name.deb, maybe it is from ftp://ftp.gnu.org/gnu/bc/, what I did just as following:
a) download from ftp://ftp.gnu.org/gnu/bc/
b) tar xvfz
c) cd bc-1.06
d) ./configure
e) make
f) make install
4) install sharutils
fakeroot apt-get install sharutils
5) Build and install microb-engine
There are two ways to build microb-engine
The first way:
a) svn co microb-engine
This will take several minutes, please wait in patient.
b) cd microb-engine/microb-engine
c) ADD_OPTIONS="--enable-oji" DEB_BUILD_OPTIONS="parallel svgport syscairo"
d) dpkg-buildpackage -d -rfakeroot -uc -us -tc | tee ../microb-engine-build.log
After building, all midiate files will be removed, and several debain packages are located in up-level directory
e) cd ..
f) fakeroot dpkg -i *.deb
The second way:
a) svn co microb-engine
This will take several minutes, please wait in patient.
b) cd microb-engine/microb-engine
c) fakeroot apt-get build-dep microb-engine
d) fakeroot dpkg-buildpackage -d -us -uc -nc
After building, the mozilla source files are located in mozilla/built-tree, and generated results files (tools, libs, and headers) are located in diectory debian;
but no any debian package is generated.
4 XPCOM Component Trouble ShootTrouble Shooting
1) Copy component files (XXX.so and XXX.xpt) from PC to device via command 'scp', after installed, the compontent can't work.
Solution: Don't copy component files via 'scp'; you need mount n810 to PC as USB memory card, then copy component files to mounted memory card.
5 Export Environment to browser
1) Export environment variable in /etc/init.d/tablet-browser-daemon, or /etc/osso-af-init/af-defines.sh (the later is loaded in the former)
2) Reboot device or execute '/etc/init.d/tablet-browser-daemon stop', wait for several seconds, then execute '/etc/init.d/tablet-browser-daemon sart'
一般来说,LibOSSO通过3个步骤可以接受和操作事件:
1. 通过LibOSSO文件原因实现必须的事件操作回调函数。硬件事件 D-Bus从硬件或系统底层传送事件或信号