Bluish Coder

Programming Languages, Martials Arts and Computers. The Weblog of Chris Double.


2008-01-08

Building Firefox from the git repository

I've made a small change to the git repository containing the Firefox source that I've been maintaining. I've removed the 'configure' file from the git repository. This will need to be regenerated before you can build the source using autoconf2.13. The steps to build Firefox from git become something like:

git clone git://double.co.nz/git/firefox.git
cd firefox/mozilla
...create .mozconfig file...
autoconf2.13
make -f client.mk build

A simple .mozconfig that works under Linux and Windows is:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options MOZ_MAKE_FLAGS=-j3
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-debug

This does a debug build. If building the version with <video> element support add this line:

ac_add_options --enable-ogg

To build on Mac OS X, add the line:

ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk

I removed 'configure' to stop the merge conflicts that keep occurring when merging the firefox tree into the video element tree, and to prevent it from being included in patches when I generate a patch to attach to the bugzilla entry.

Tags


This site is accessable over tor as hidden service 6vp5u25g4izec5c37wv52skvecikld6kysvsivnl6sdg6q7wy25lixad.onion, or Freenet using key:
USK@1ORdIvjL2H1bZblJcP8hu2LjjKtVB-rVzp8mLty~5N4,8hL85otZBbq0geDsSKkBK4sKESL2SrNVecFZz9NxGVQ,AQACAAE/bluishcoder/-61/


Tags

Archives
Links