1
edit
Changes
→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 ==
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
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 ==
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...