Changes

Jump to: navigation, search

Fennec on a Nokia N810

370 bytes added, 10:22, 20 March 2009
Packaging Fennec
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
== 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