Revision 273108 of Instruções de compilação

  • Slug da revisão: Guia_do_desenvolvedor/Instruções_de_compilação
  • Título da revisão: Instruções de compilação
  • ID da revisão: 273108
  • Criado:
  • Autor: clauber.halic
  • É revisão atual? Não
  • Comentário page content-type changed to 'application/x.deki0805+xml'

Conteúdo da revisão

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

O sistema de compilação Mozilla, tal como o resto do código base Mozilla, é cross-platform. Ele usa ferramentas tradicionais estilo Unix autoconf e make para compilar os vários aplicativos(mesmo em sistemas operacionais não Unix).

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.

Porque o código base Mozilla compila muitas aplicações diferentes e tem muitas opções, é dificil de usar e aprender. Por favor, leia estas instruções cuidadosamente antes de tentar compilar.

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.

Estas páginas contêm instruções para compilar projetos que usam o sistema de compilação baseado no autoconf: Firefox, Thunderbird, Mozilla Suite / SeaMonkey, XULRunner, Sunbird, standalone Composer, standalone XPCOM, e standalone XPConnect.

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

Para informações de compilação em outros projetos Mozilla, visite o site ou a página de compilação do projeto : Camino, NSPR, Spidermonkey, NSS, e 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.

Se você tiver problemas na compilação, por favor, envie sua dúvida para a lista de discussão mozilla.dev.builds (acesso através do Google Groups). Envie sua mensagem com a maior precisão, incluindo detalhes sobre o seu Sistema Operacional, suas flags mozconfig/configure, e sobre o erro que você esta enfrentando.

For the impatient

Para os impacientes

The quickest way to build Mozilla is to use the instructions at the simple build pages:

A maneira mais rápida para compilar o Mozilla é usar as instruções na página de compilação simples:

However, if you can stand to read a few wiki pages, it is probably best to start below and read all the recommended pages.

No entanto, se você puder separar um tempo para ler algumas páginas do wiki, provavelmente é o melhor caminho a seguir e ler todos as páginas recomendadas.

Getting started

Como começar

Build prerequisites

Prérequisitos de compilação

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

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

Get the source

Download Mozilla Source Code
Source code for releases is available for download via FTP/HTTP.
Mozilla Source Code via Mercurial
Those doing active development on Firefox 3.5/Mozilla 1.9.1 can check out the latest source using Mercurial. 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.
Comm-central Source Code via Mercurial
Those doing active development on Thunderbird 3.0/SeaMonkey 2.0/Sunbird 1.0/Firefox 3.5/Mozilla 1.9.1 can check out the latest source using Mercurial. This method includes all the code for the applications mentioned, so you can work on Firefox 3.5 development, and still build Thunderbird, SeaMonkey or Sunbird as well.
Older Mozilla Source Code via CVS
Those doing active development on Firefox 3/Mozilla 1.9 (and earlier) 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.

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.

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.

Random FAQs and Developer Documentation

Hacking the Build System

Interwiki Language Links: {{ languages( { "es": "es/Documentaci\u00f3n_para_la_compilaci\u00f3n", "fr": "fr/Documentation_sur_la_compilation", "it": "it/Documentazione_per_build", "pl": "pl/Dokumentacja_kompilacji", "ja": "ja/Build_Documentation", "ko": "ko/Build_Documentation", "zh-cn": "cn/\u7f16\u8bd1\u624b\u518c" } ) }}

Fonte da revisão

 <p>The Mozilla build system, like the rest of the Mozilla codebase, is cross-platform. It uses traditional unix-style <a class="external" href="http://www.gnu.org/software/autoconf/">autoconf</a> and <a class="external" href="http://www.gnu.org/software/make/">make</a> tools to build the various applications (even on non-unix operating systems).</p>
<p>O sistema de compilação Mozilla, tal como o resto do código base Mozilla, é cross-platform. Ele usa ferramentas tradicionais estilo Unix <a class="external" href="http://www.gnu.org/software/autoconf/">autoconf</a> e <a class="external" href="http://www.gnu.org/software/make/">make</a> para compilar os vários aplicativos(mesmo em sistemas operacionais não Unix).</p> <p>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.</p>
<p>Porque o código base Mozilla compila muitas aplicações diferentes e tem muitas opções, é dificil de usar e aprender. Por favor, leia estas instruções cuidadosamente antes de tentar compilar.</p> <p>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.</p>
<p>Estas páginas contêm instruções para compilar projetos que usam o sistema de compilação baseado no autoconf: Firefox, Thunderbird, Mozilla Suite / SeaMonkey, XULRunner, Sunbird, standalone Composer, standalone XPCOM, e standalone XPConnect.</p> <p>For build information on other mozilla projects, visit their project or build page: <a class="external" href="http://wiki.caminobrowser.org/Development:Building">Camino</a>, <a class="external" href="http://www.mozilla.org/projects/nspr/eng-process/build.html">NSPR</a>, <a class="external" href="http://lxr.mozilla.org/mozilla/source/js/src/README.html">Spidermonkey</a>, <a class="external" href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>, and <a class="external" href="http://wiki.mozilla.org/LDAP_C_SDK">Directory SDK for C</a>.</p>
<p>Para informações de compilação em outros projetos Mozilla, visite o site ou a página de compilação do projeto : <a class="external" href="http://wiki.caminobrowser.org/Development:Building">Camino</a>, <a class="external" href="http://www.mozilla.org/projects/nspr/eng-process/build.html">NSPR</a>, <a class="external" href="http://lxr.mozilla.org/mozilla/source/js/src/README.html">Spidermonkey</a>, <a class="external" href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>, e <a class="external" href="http://wiki.mozilla.org/LDAP_C_SDK">Directory SDK for C</a>.</p> <p>If you are having build problems, please post questions to the newsgroup <a class="link-news" href="news://news.mozilla.org/mozilla.dev.builds">mozilla.dev.builds</a> (<a class="external" href="http://groups.google.com/group/mozilla.dev.builds">access via Google Groups</a>). Make your post as precise as possible, including details about your operating system, your mozconfig/configure flags, and the precise error you are experiencing.</p>
<p>Se você tiver problemas na compilação, por favor, envie sua dúvida para a lista de discussão <a class="link-news" href="news://news.mozilla.org/mozilla.dev.builds">mozilla.dev.builds</a> (<a class="external" href="http://groups.google.com/group/mozilla.dev.builds">acesso através do Google Groups</a>). Envie sua mensagem com a maior precisão, incluindo detalhes sobre o seu Sistema Operacional, suas flags mozconfig/configure, e sobre o erro que você esta enfrentando.</p> <h2 name="Getting_started">For the impatient</h2>
<h2 name="Getting_started">Para os impacientes</h2> <p>The quickest way to build Mozilla is to use the instructions at the simple build pages:</p>
<p>A maneira mais rápida para compilar o Mozilla é usar as instruções na página de compilação simples:</p> <ul> <li><a class="internal" href="/En/Simple_Firefox_build" title="En/Simple_build">Simple Firefox build</a>.</li> <li><a class="internal" href="/En/Simple_Firefox_build" title="En/Simple_build">Compilação simples do Firefox</a>.</li> <li><a class="internal" href="/en/Simple_Thunderbird_build" title="en/Simple Thunderbird build">Simple Thunderbird build</a>.</li> <li><a class="internal" href="/en/Simple_Thunderbird_build" title="en/Simple Thunderbird build">Compilação Simples do Thunderbird</a>.</li> </ul> <p>However, if you can stand to read a few wiki pages, it is probably best to start below and read all the recommended pages.</p>
<p>No entanto, se você puder separar um tempo para ler algumas páginas do wiki, provavelmente é o melhor caminho a seguir e ler todos as páginas recomendadas.</p> <h2 name="Getting_started">Getting started</h2>
<h2 name="Getting_started">Como começar</h2> <h3 name="Build_prerequisites">Build prerequisites</h3>
<h3 name="Build_prerequisites">Prérequisitos de compilação</h3> <p>Before you try to build, make sure you have the correct tools, and have configured these tools correctly.</p>
<p>Before you try to build, make sure you have the correct tools, and have configured these tools correctly.</p> <ul> <li><a href="/En/Developer_Guide/Build_Instructions/Linux_Prerequisites" title="en/Linux_Build_Prerequisites">Unix/Linux</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/Windows_Prerequisites" title="en/Windows_Build_Prerequisites">Windows</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites" title="en/Mac_OS_X_Build_Prerequisites">Mac OS X</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/Solaris_Prerequisites" title="en/Solaris_Build_Prerequisites">Solaris</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/OS//2_Build_Prerequisites" title="en/OS//2_Build_Prerequisites">OS/2 and eComStation</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/BeOS_Prerequisites" title="en/BeOS_Build_Prerequisites">BeOS</a></li> <li><a href="/En/Developer_Guide/Build_Instructions/Building_JavaXPCOM" title="en/Building_JavaXPCOM">JavaXPCOM Build Requirements</a></li>
</ul>
<h3 name="Get_the_source">Get the source</h3>
<dl> <dt><a href="/En/Developer_Guide/Source_Code/Downloading_Source_Archives" title="en/Mozilla_Source_Code_(HTTP//FTP)">Download Mozilla Source Code</a> </dt> <dd>Source code for releases is available for download via FTP/HTTP. </dd> <dt><a href="/En/Developer_Guide/Source_Code/Mercurial" title="en/Mozilla_Source_Code_(Mercurial)">Mozilla Source Code via Mercurial</a> </dt> <dd>Those doing active development on Firefox 3.5/Mozilla 1.9.1 can check out the latest source using Mercurial. 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. </dd> <dt><a href="/En/Developer_Guide/Source_Code/Getting_comm-central" title="en/Comm-central_source_code_(Mercurial)">Comm-central Source Code via Mercurial</a> </dt> <dd>Those doing active development on Thunderbird 3.0/SeaMonkey 2.0/Sunbird 1.0/Firefox 3.5/Mozilla 1.9.1 can check out the latest source using Mercurial. This method includes all the code for the applications mentioned, so you can work on Firefox 3.5 development, and still build Thunderbird, SeaMonkey or Sunbird as well. </dd> <dt><a href="/En/Developer_Guide/Source_Code/CVS" title="en/Mozilla_Source_Code_(CVS)">Older Mozilla Source Code via CVS</a> </dt> <dd>Those doing active development on Firefox 3/Mozilla 1.9 (and earlier) 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. </dd>
</dl>
<h3 name="Configuring_build_options">Configuring build options</h3>
<p>Running configure and make with the default options will not give you a good working build. You should use a <code>.mozconfig</code> file to obtain a reasonable release build. Please read <a href="/en/Configuring_Build_Options" title="en/Configuring_Build_Options">Configuring Build Options</a> carefully before building.</p>
<h3 name="Build_and_install">Build and install</h3>
<p>The Mozilla build system uses GNU make and configure scripts to drive the build. Please follow the <a href="/en/Build_and_Install" title="en/Build_and_Install"> build and installation instructions</a> carefully.</p>
<h2 name="Random_FAQs_and_Developer_Documentation">Random FAQs and Developer Documentation</h2>
<ul> <li><a href="/en/Mozilla_Build_FAQ" title="en/Mozilla_Build_FAQ">Mozilla Build FAQ</a></li> <li><a href="/en/Adding_Files_to_the_Build" title="en/Adding_Files_to_the_Build">Adding Files to the Build</a></li> <li><a href="/en/Adding_XPCOM_components_to_Mozilla_build_system" title="en/Adding_XPCOM_components_to_Mozilla_build_system">Adding Components</a></li> <li><a href="/en/Creating_a_Release_Tag" title="en/Creating_a_Release_Tag">Creating a Release Tag</a></li> <li><a href="/en/Cross-Compiling_Mozilla" title="en/Cross-Compiling_Mozilla">Cross-Compiling Mozilla</a></li> <li><a href="/en/Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS" title="en/Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS">Compiling 32-bit Firefox on a Linux 64-bit OS</a></li> <li><a href="/en/Mozilla_Release_Checklist" title="en/Mozilla_Release_Checklist">Mozilla Release Checklist</a></li> <li><a href="/en/Building_a_Mozilla_Distribution" title="en/Building_a_Mozilla_Distribution">Building a Mozilla Distribution</a></li> <li><a href="/en/Mozilla_Release_Build_Notes" title="en/Mozilla_Release_Build_Notes">Notes on how mozilla.org does release builds</a></li> <li><a href="/en/Package_Filename_Convention" title="en/Package_Filename_Convention">Package Filename Convention</a></li> <li><a href="/en/Building_with_Profile-Guided_Optimization" title="en/Building_with_Profile-Guided_Optimization">Building with Profile-Guided Optimization</a></li> <li><a href="/En/SpiderMonkey/Build_Documentation" title="en/Building_only_SpiderMonkey">Building only SpiderMonkey</a></li>
</ul>
<ul> <li><a class="internal" href="/Special:Tags?tag=Build+documentation&amp;language=en" title="All articles tagged as build documentation.">All build documentation</a> </li>
</ul>
<h2 name="Hacking_the_Build_System">Hacking the Build System</h2>
<ul> <li><a href="/en/How_Mozilla's_build_system_works" title="en/How_Mozilla's_build_system_works">How Mozilla's build system works</a></li> <li><a class="internal" href="/Special:Tags?tag=Build_Glossary" title="Special:Tags?tag=Build Glossary">Build Glossary</a> <a class="external" href="http://www.mozilla.org/build/glossary.html" title="http://www.mozilla.org/build/glossary.html">(old glossary)</a></li> <li><a href="/en/JAR_Manifests" title="en/JAR_Manifests">Build and Register Chrome JARs with JAR Manifests</a></li>
</ul>
<p><span class="comment">Interwiki Language Links: </span>{{ languages( { "es": "es/Documentaci\u00f3n_para_la_compilaci\u00f3n", "fr": "fr/Documentation_sur_la_compilation", "it": "it/Documentazione_per_build", "pl": "pl/Dokumentacja_kompilacji", "ja": "ja/Build_Documentation", "ko": "ko/Build_Documentation", "zh-cn": "cn/\u7f16\u8bd1\u624b\u518c" } ) }}</p>
Reverter para esta revisão