Well I must say I had a few bumps here and there but after following the instructions from Mozilla it all ended up well. Following these steps should result in a nice compile of Firefox Minefield.
- Run the following command to install any missing packages, all packages are required. (Note that I’ve included some packages that you may already have, therefore this command “should” work on any recent Linux install. This is all one line.)
- Next, check out a single file using this command. It will be used to run the main checkout/build. (note that this is all one line, thanks to Ian for pointing that out)
- Change directories to the new checkout.
- Proceed to checkout Firefox with the following command (Note that this will likely take some time)
- You will now require one more items to make it all work (at least well). For a start you will need a
.mozconfigfile (note the dot in front). This file will input command line options for you so you won’t have to. The Mozilla Build Configurator website will automatically generate one for you with any of the options you wish for. I’ve also made a generic file that you can use below. If you’re using the Mozilla directory for your CVS checkout like specified above then create the
.mozconfigfile there and paste the following:
- Now you can finally build it! Change to your mozilla root directory (this how to uses the default:
mozilla) and run the following:
make -f client.mk build
Note: To time your compile add
timeto the front like so:
time make -f client.mk build
- You can now run Firefox “Minefileld” edition by going to the obj-something directory. this will change according to what your computer is. So as long as it says obj- in front its the right one. Therefore the path should be something like
Afterwards simple run the “firefox” script (not the file) to use ff3!!!
Note: Please inform me of corrections if needed. Full how-to can be found on Mozilla’s Build Documentation
sudo apt-get install gcc g++ perl make cvs libxt-dev libidl0 libidl-dev libfreetype6 fontconfig
cvs -d :pserver:email@example.com:/cvsroot co mozilla/client.mk
make -f client.mk checkout MOZ_CO_PROJECT=browser
To check out different projects from source simply change the MOZ_CO_PROJECT variable to the desired project. They are all listed here.
# See http://www.mozilla.org/build/ for build instructions.
# Options for client.mk.
# Options for 'configure' (same as command-line options).