Mobile/Build/cs2007q3/Fremantle

From MozillaWiki
< Mobile‎ | Build‎ | cs2007q3
Jump to: navigation, search

Building Fennec for Maemo 5

These are instructions for building Fennec on Linux using the Maemo 5 (Fremantle) SDK for the Nokia N900.

We currently use the Maemo 4 (Chinook) SDK to build official Firefox for Maemo releases, because Fremantle is not compatible with the Nokia N800/N810. See Mobile/Build/cs2007q3 for Chinook build instructions.

Configure VDSO and mmap settings

On recent versions of Ubuntu (including 8.04 through 10.04) and other distributions, you will need to add the following lines to /etc/sysctl.conf (otherwise the Scratchbox installation will fail with errors about mmap permissions):

vm.vdso_enabled = 0
vm.mmap_min_addr = 4096

Then run this command:

sudo sysctl -p

Install the Maemo SDK

Follow the instructions at or Maemo 5 SDK installation for beginners to install Scratchbox, Maemo 5 SDK, and Nokia binaries for ARM.

(Maemo 5 Final SDK Installation has essentially the same instructions in a different format, if the you have problems with the "beginners" link.)

Install dependencies

At the shell, run:

/scratchbox/login

At the scratchbox prompt, run:

sb-conf se FREMANTLE_ARMEL
echo "deb http://repository.maemo.org/extras-devel fremantle free non-free" >> /etc/apt/sources.list
yes | fakeroot apt-get update
yes | fakeroot apt-get install \
 libgtk2.0-dev libxaw7-dev libfreetype6-dev libxi-dev \
 libhildonmime-dev libosso-dev libidl-dev liblocation-dev \
 libasound2-dev libhildon1-dev libiw-dev \
 libxdamage-dev libxcomposite-dev \
 libnotify-dev libhildonfm2-dev libconic0-dev \
 python2.5

(This is the list of packages as the Maemo 4 build, except python2.5 has replaced python2.4.)

Clone and build the Fennec source

Stay logged into scratchbox and continue to the Mobile/Build/Fennec#Pull_the_code_from_Mercurial to start building Firefox for Maemo.