mozilla

Revision 17965 of Simple Firefox build

  • Revision slug: Simple_Firefox_build
  • Revision title: Simple Firefox build
  • Revision id: 17965
  • Created:
  • Creator: Jorend
  • Is current revision? No
  • Comment 73 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 500MB of disk space free, at least 500MB 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

# 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.

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 500MB of disk space free, at least 500MB 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

# 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>
<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%20Build%20Options" title="En/Configuring Build Options"><code>mozconfig</code> file</a>.</p>
<p> </p>
Revert to this revision