mozilla

Revision 17968 of Simple Firefox build

  • Revision slug: Simple_Firefox_build
  • Revision title: Simple Firefox build
  • Revision id: 17968
  • Created:
  • Creator: Jorend
  • Is current revision? No
  • Comment 34 words added

Revision Content

On Ubuntu Linux, you can build a bleeding-edge, development version of Firefox using the commands below.

Building Firefox requires at least 1 GB of disk space, 500 MB of RAM, and lots of available swap space.

# Get the tools
sudo apt-get build-dep firefox
sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev
# Note: On Fedora, use these commands instead:
# sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development'
# sudo yum install mercurial autoconf213

# Get the source
hg clone -r default http://hg.mozilla.org/mozilla-central/
cd mozilla-central

# Configure
autoconf-2.13
mkdir objdir-ff-release
cd objdir-ff-release
../configure --enable-application=firefox

# Build
make -j4

However, this is not necessarily the best approach if you want to work on Mozilla.  See the build documentation for the full story.

  • For a debug build, pass --enable-debug and --disable-optimize to configure.  This requires more disk space, about 2.5 GB.
  • To build Thunderbird or SeaMonkey, you'll need more source code.

How to build again later

In your mozilla-central directory, run these commands:

# Get the latest source
hg pull -r default
hg update

Then just re-run the Configure and Build commands above.  make will only recompile files that changed.

You must use the same configure options each time you rebuild.  To avoid this error-prone step, use a mozconfig file.

 

Revision Source

<p>On Ubuntu Linux, you can build a bleeding-edge, development version of Firefox using the commands below.</p>
<p>Building Firefox requires at least 1 GB of disk space, 500 MB of RAM, and lots of available swap space.</p>
<pre># Get the tools
sudo apt-get build-dep firefox
sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev
# Note: On Fedora, use these commands instead:
# sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development'
# sudo yum install mercurial autoconf213

# Get the source
hg clone -r default http://hg.mozilla.org/mozilla-central/
cd mozilla-central

# Configure
autoconf-2.13
mkdir objdir-ff-release
cd objdir-ff-release
../configure --enable-application=firefox

# Build
make -j4
</pre>
<p>However, this is not necessarily the best approach if you want to work on Mozilla.  See the <a class="internal" href="/en/Build_Documentation" title="En/Build Documentation">build documentation</a> for the full story.</p>
<ul> <li>For a debug build, pass <code>--enable-debug</code> and <code>--disable-optimize</code> to <code>configure</code>.  This requires more disk space, about 2.5 GB.</li> <li>To build Thunderbird or SeaMonkey, you'll need <a class="internal" href="/en/Comm-central_source_code_(Mercurial)" title="En/Comm-central source code (Mercurial)">more source code</a>.</li>
</ul>
<h2>How to build again later</h2>
<p>In your mozilla-central directory, run these commands:</p>
<pre># Get the latest source
hg pull -r default
hg update
</pre>
<p>Then just re-run the Configure and Build commands above.  <code>make</code> will only recompile files that changed.</p>
<p>You must use the same <code>configure</code> options each time you rebuild.  To avoid this error-prone step, use a <a class="internal" href="/en/Configuring_Build_Options" title="En/Configuring Build Options"><code>mozconfig</code> file</a>.</p>
<p> </p>
Revert to this revision