Search This Blog

Wednesday, February 23, 2011

Build The Latest FIrefox

Firefox is great, but the new version is always delayed :)
Why not building Firefox yourself? You can use the latest
Firefox, contribute your patch, and enjoy the rich
configuration options FF has provided to you!

1. FF depends on various library, here are some you might need.
sudo apt-get install autoconf2.13
sudo apt-get install libgtk2.0-dev
sudo apt-get install libnotify-dev
sudo apt-get install libasound2-dev
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libidl-dev
sudo apt-get install libiw-dev
sudo apt-get install yasm
sudo apt-get install openjdk-6-jdk

2. Get the FF source:
hg clone src

3. add .mozconfig in your src directory: (this a a debug version of FF)
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-dbg
mk_add_options AUTOCONF=autoconf2.13
ac_add_options --disable-optimize
ac_add_options --enable-debug 
ac_add_options --enable-tests
ac_add_options --enable-application=browserac_add_options --disable-webm

4. Build Firefox!
make -f build
(have some coffee)
search your dependencies
Do you miss source-base Linux now? :)
5. Run your fresh Firefox!
(in the .mozconfig above, objdir is ff-dbg)

No comments: