Visit Mozilla.org

Build Documentation

From MDC

The Mozilla build system, like the rest of the Mozilla codebase, is cross-platform. It uses traditional unix-style autoconf and make tools to build the various applications (even on non-unix operating systems).

Because the Mozilla codebase builds many different applications and has many options, it is complex to use and learn. Please read these instructions carefully before attempting a build.

Contents


These build pages are for the projects which use the autoconf-based build system: Firefox, Thunderbird, Mozilla Suite / SeaMonkey, XULRunner, Sunbird, standalone Composer, standalone XPCOM, and standalone XPConnect.

For build information on other mozilla projects, visit their project or build page: Camino, NSPR, Spidermonkey, NSS, and Directory SDK for C.

If you are having build problems, please post questions to the newsgroup mozilla.dev.builds (access via Google Groups). Make your post as precise as possible, including details about your operating system, your mozconfig/configure flags, and the precise error you are experiencing.

[edit] Getting started

[edit] Build requirements

Before you try to build, make sure you have the correct tools, and have configured these tools correctly.

[edit] Get the source

Download Mozilla Source Code
Source code for releases is available for download via FTP/HTTP.

Mozilla Source Code Via CVS
Those doing active development can check out the latest source using CVS. This is the preferred method if you plan to provide patches and fix bugs, as it lets you get up-to-the-minute changes and merge them with your own.

Browse Sources on the Web
Mozilla sources are available for online browsing at the Mozilla Cross-Reference (LXR).

[edit] Configuring build options

Running configure and make with the default options will not give you a good working build. You should use a .mozconfig file to obtain a reasonable release build. Please read Configuring Build Options carefully before building.

[edit] Build and install

The Mozilla build system uses GNU make and configure scripts to drive the build. Please follow the build and installation instructions carefully.

[edit] Random FAQs and Developer Documentation

[edit] Hacking the Build System