Building on Fedora 13


Run this command in terminal note that you need to do this as root. To switch to the root execute the command: su root

There is going to be some dialog so pay attention and answer y to everything

sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development'
sudo yum install mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libGL-devel


1. Get the source code

hg clone src
cd src

2. Make a .mozconfig file and put it into the directory (src) you made above. The file should contain:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-debug
mk_add_options MOZ_MAKE_FLAGS="-j2"
ac_add_options --enable-debug
ac_add_options --disable-optimize

Note these options are for a debug-build

3. Run the make file

make -f

4. Run firefox by going into the src/objdir-ff-debug/dist/bin directory and either double clicking on the icon or via the command ./firefox


View all of my blogs

View all of my blogs on Building

Audio Data API ~ Build from Scratch

Installing build tools

Before I can build Firefox i needed to install some build tools. To guide me through the process i used Mozilla’s Documentation. To get started you need Xcode and MacPorts, if you need help installing these visit my post on Installing Git on Mac OS.

To install the build tools run these two commands in your terminal:

  • sudo port sync
  • sudo port install mercurial libidl autoconf213

Building Firefox

Update with Audio Patch

Due to the fact that the audio data api is brand new it is always changing and therefore the version numbers and patch links I am providing may be outdated visit the audio api wiki to check for updates.

  • hg update -r 6d517fe3d7ae (use 683dfdc4adf0 if wiki has not been updated post May 14)
  • get a patch and save it on your computer: patch -p1 < pathToaudio11h.diff

Making Config file

Type the following commands in the terminal. Make sure all ‘ and ” are correct. For more information and if you are not running Mac OS 10.6 visit Build Prerequisites.

  • let’s build Firefox:  echo ‘. $topsrcdir/browser/config/mozconfig’ > mozconfig
  • …in this directory:  echo ‘mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release’ >> mozconfig
  • echo ‘mk_add_options MOZ_MAKE_FLAGS=”-s -j4″‘ >> mozconfig
  • echo ‘ac_add_options –with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk’ >> mozconfig


  • make -f

Make a Package

  • cd objdir-ff-release
  • make package

Run The Browser

You are now ready to run the browser. If you have other versions of Firefox installed you will need to make a new profile.

  • mozilla-central/objdir-ff-release/dist/ -no-remote -profilemanager

View all of my blogs on Audio
View all of my blogs

Building on Ubuntu 9.04

So i got tired of Vista. I am having problems building. I keep on getting errors. My last error was Windows SDK not supported. I tried installing the new Vista SDK and I keep getting an error: Install stopped reason unknown!!!! I switched to: Ubuntu 9.04 – the Jaunty Jackalope – released in April 2009. HAHAHHAHAHAHA

PS. i got some help from another blogger. If u dont understand my stuff check out

Setting Up Environment:

Run these two commands in the terminal (Applications=>Accessories=>Terminal)

  1. sudo apt-get build-dep firefox
  2. sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev

I got an error message at first saying can’t find mercurial so I had to install it using Synaptic Package Manager (System=>Administration).

Ok this took some time as I did not know what i was doing…. well i still dont. But I opened it and typed in “mercurial” in quick search. Guess what NO RESULTS. I googled it and found nothing!! Well… noting that worked. Finally, someone told me to look for hg! I did and I got a result, double clicked it somehow it started installing!

Get the latest code:

You have to get the latest code from the repository. To do this run this command in the Terminal:

  1. hg clone src

NOTE: src (in the above command) is the path to where you want the folder to be created.

Now you have to switch directories. In the Terminal run this command:

  1. cd src

YES: src is the path u used in the previous command

Build the Code

Before u build, you have to make a “.mozconfig” file. Open an editor (Applications=>Accessories=>Test Editor) and type the following:

ac_add_options –enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser

Save this file in /home/username. Same place where u find Desktop

Now run this command in the Terminal (make sure u are in the right directory: cd src)

  1. make -f build

Running Mozilla Firefox

Now you can run firefox by changing directories and running one simple command

  1. cd obj-i686-pc-linux-gnu/dist/bin
  2. ./firefox

Note: If you have another firefox session opened, you either have to close it or use this command: ./firefox -profilemanager -no-remote You will need to add a profile.

Make sure its the right Firefox

You should be running Minefield. If you go to Help it will say About Minefield.

Useful links:

Click Here To read all of my blogs.

Click Here To read my build blogs.


    So I spent countless of days trying to build Mozilla, finally I succeeded (I think). After installing and uninstalling programs I found that this is all u need:

    1. Visual Studio 2008 (make sure u select all options on install)

    – I believe that on the Mozilla Developer site this is reffered to as Visual C++ 9 (VS 2008)

    – When you open VS2008 & Select the Help Tab & open About  u see : Microsoft Visual Studio Version 9.0.21….., Microsoft .NET framework Version 3.5 SP 1.

    2. Download mozilla- build

    – make sure this is the latest version, especially if u get build errors

    – install/extract this to any directory

    3. get the Mozilla source code  using the start-msvc9 application found in mozilla-build

    – when you 0pen the application you may need to change the path; use pwd to check the path, use cd +new path to change the path

    – to get the Mozilla source code use: hg clone mozilla

    – to update the Mozilla source code use: hg pull -u (note that u must be in the mozilla directory created above to use this command)

    4. make the mozconfig file using the start-msvc9 application found in mozilla-build

    – use the cd command to change to the mozilla directory created in step 3

    – write each of the following lines pressing enter after each one: Make sure to include all ” and ‘

    echo ‘. $topsrcdir/browser/config/mozconfig’ > mozconfig

    echo ‘mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release’ >> mozconfig

    echo ‘mk_add_options MOZ_MAKE_FLAGS=”-j2″‘ >> mozconfig

    5. build the source code using the start-msvc9 application found in mozilla-build and the mozconfig file written in step 4

    – use the cd command to change to the mozilla directory created in step 3

    –  use this command to run the build: make -f

    Now, I am running Vista on a Windows machine and the build took me ONLY 10 min!  I am very surprised. To make matters worse, there is no message saying that the build was successful. Then again there was no error messages. I will have to see if I can change that.