Changes

Jump to: navigation, search

Fennec on a Nokia N810

694 bytes added, 10:22, 20 March 2009
Packaging Fennec
'''note:''' if the libIDL error appears on build run this.
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pgkconfig
 
'''note:''' mmap Permission error occurs quit scratchbox and run 'sudo sysctl -p'
== Unistalling Scratchbox ==
hg clone http://hg.mozilla.org/mozilla-central
 
cd mozilla-central
 
hg clone http://hg.mozilla.org/mobile-browser mobile
Once that is done you will have 2 directories in your
object directory ''mobile'' and ''xulrunner''
 
== Packaging Fennec ==
then copy it over to the device
scp bunzip2 fennec-1.0a3pre.en-US.linux-arm.tar root@ip.address.to.device:/media/mmc2/
'''note:''' /media/mmc2 is the built in memory card on the device
currently it is required that you apply 3 patches
from bugs
[https://bugzilla.mozilla.org/show_bug.cgi?id=470971470971], [https://bugzilla.mozilla.org/show_bug.cgi?id=460515460515], and [https://bugzilla.mozilla.org/show_bug.cgi?id=421611 421611]  
then build it again
from your $objdir/xulrunner/
cd _tests/testing/mochitest
## create backup
cp -R chrome chrome.bak
## NOTE: you need to do the following steps in a look for each directory
## dirs: [content, docshell, dom, toolkit, widget]
rm -Rf chrome/*
cp -R chrome.bak/content chrome/
cd $objdir/xulrunner
make testpackage-package tests
you will end up with a file called
For more information visit:
[https://wiki.mozilla.org/Mobile/Fennec_Chrome]
[http://zadkielm.blogspot.com/2009/01/bits-of-fennec-for-device.html]
== Running Mochitests ==
== Debugging on Fennec on a Nokia N810 ==
Currently gdb is not working on Fennec on the device. The symbols get stripped during the packaging process.  So you You must rely on dump() in javascript and printf() in C++
and your console/terminal in order to debug.
'''note:''' Usually I put "DEBUG" in front of all the dump() and printf()
so that you can grep for them on the console/terminal.
 
There are instructions on how to get gdb installed here:
[http://maemo.org/development/tools/#apt-example]
 
In order to get gdb to work on fennec it needs to be packaged
with it's symbols to do that run
 
"make package PKG_SKIP_STRIP=1"
 
'''note:''' right now running fennec with the -g flag doesn't work
 
However, if you get the pid of fennec and do a "gdb nameOfBinary -p processId"
you can see the symbols start to get loaded and it crashes the device
 
here:
Loaded symbols for /media/mmc2/fennec/xulrunner/libmozjs.so
Reading symbols from /media/mmc2/fennec/xulrunner/libxul.so...
1
edit

Navigation menu