Configuring Build Options

  • Revision slug: Talk:Configuring_Build_Options
  • Revision title: Configuring Build Options
  • Revision id: 137107
  • Created:
  • Creator: T-timmy
  • Is current revision? Yes
  • Comment 43 words added

Revision Content

mozconfig vs. manual configure

I think these instructions can be cleaned up and made to be much easier for new users. First off, can you explain what the real problem with simply doing:

./configure --enable-application=browser
make

Second: the instructions say to "export MOZCONFIG=~/mozilla/mozconfig-firefox". If that is always the case, then it should just be defined as `pwd`/mozconfig-firefox then the instructions should just go away and replaced with instructions on how to set this to something else. Agreed? Thanks for your time, Jeff Carr 14:53, 27 December 2005 (PST)

Manual configuration (without sourcing browser/config/mozconfig) does not work on older branches such as the aviary (Firefox/Thunderbird 1.0.x) branch.

As explained in the instructions, the default location of mozconfig is the root of the source tree, or ~/.mozconfig if not present. You only need to set MOZCONFIG in your environment to override this default.

--bsmedberg 13:32, 28 December 2005 (PST)

fb in fb-opt-static

What does the fb in fb-opt-static for Firefox mean? Doesn't ff-opt-static make more sense?

Foolswisdom

It stood for "FireBird", probably a remnance from one of the original authors mozconfig's from back when s/he was working on Firebird (same app, just prior to new name). I have taken the liberty of correcting the article to read ff-opt-static now in its place, for clarity reasons, based on your suggestion. Thanks! --Callek 17:06, 16 February 2006 (PST)

Which branch

Which branch is this document targetted at? I see things that applied to 1.8 (Gtk (1)? Qt!?) but have no chance on trunk, and things that are trunk (libxul being default). I am attempting to try to use past tense for old information, but it would be nice if this is made clear. --Mook 00:00, 9 April 2008 (PDT)

objdir edit

The reason I made the edit was due to the fact that I had tried building in an objdir outside the 'mozilla' source folder, and I kept getting build errors.  Putting the objdir inside 'mozilla', and changing nothing else, resulted in a clean build.  --T-Mic

location of objdir

The page says "Be sure to put your objdir inside the 'mozilla' directory or else you will get a ton of weird build errors." Well, my objdir is not under mozilla but two levels above and I had no problems building a checkout from Comm-central. I took the option from an example on Comm-central_source_code_(Mercurial) that says

echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-tb' >> .mozconfig

So I guess either the example is wrong and I just had luck it works. Or the above warning is wrong or at least outdated. In any case one of the two texts should be changed. --robome 03 November 2008

No /mozilla dir?

As a new user I came here from Mozilla source code , and my /src directory doesn't have /mozilla, so I can't find out where to put the config file.

Revision Source

<h3 id="mozconfig_vs._manual_configure" name="mozconfig_vs._manual_configure">mozconfig vs. manual configure</h3>
<p>I think these instructions can be cleaned up and made to be much easier for new users. First off, can you explain what the real problem with simply doing:</p>
<pre class="eval">./configure --enable-application=browser
make
</pre>
<p>Second: the instructions say to "export MOZCONFIG=~/mozilla/mozconfig-firefox". If that is always the case, then it should just be defined as `pwd`/mozconfig-firefox then the instructions should just go away and replaced with instructions on how to set this to something else. Agreed? Thanks for your time, <a href="/User:Jeff_Carr" title="User:Jeff_Carr">Jeff Carr</a> 14:53, 27 December 2005 (PST)</p>
<p>Manual configuration (without sourcing browser/config/mozconfig) does not work on older branches such as the aviary (Firefox/Thunderbird 1.0.x) branch.</p>
<p>As explained in the instructions, the default location of mozconfig is the root of the source tree, or ~/.mozconfig if not present. You only need to set MOZCONFIG in your environment to override this default.</p>
<p>--<a href="/User:Benjamin_Smedberg" title="User:Benjamin_Smedberg">bsmedberg</a> 13:32, 28 December 2005 (PST)</p>
<h3 id="fb_in_fb-opt-static" name="fb_in_fb-opt-static">fb in fb-opt-static</h3>
<p>What does the fb in fb-opt-static for Firefox mean? Doesn't ff-opt-static make more sense?</p>
<p><a href="/User:Foolswisdom" title="User:Foolswisdom">Foolswisdom</a></p>
<dl><dd> It stood for "FireBird", probably a remnance from one of the original authors mozconfig's from back when s/he was working on Fire<em>bird</em> (same app, just prior to new name). I have taken the liberty of correcting the article to read <code>ff-opt-static</code> now in its place, for clarity reasons, based on your suggestion. Thanks! --<a href="/User:Callek" title="User:Callek">Callek</a> 17:06, 16 February 2006 (PST) </dd></dl>
<h3 id="Which_branch" name="Which_branch">Which branch</h3>
<p>Which branch is this document targetted at? I see things that applied to 1.8 (Gtk (1)? Qt!?) but have no chance on trunk, and things that are trunk (libxul being default). I am attempting to try to use past tense for old information, but it would be nice if this is made clear. --<a href="/User:Mook" title="User:Mook">Mook</a> 00:00, 9 April 2008 (PDT)</p>
<h3 id="objdir_edit">objdir edit</h3>
<p>The reason I made the edit was due to the fact that I had tried building in an objdir outside the 'mozilla' source folder, and I kept getting build errors.  Putting the objdir inside 'mozilla', and changing nothing else, resulted in a clean build.  --<a class="internal" href="/User:T-Mic" title="User:T-Mic">T-Mic</a></p>
<h3 id="location_of_objdir">location of objdir</h3>
<p>The page says "Be sure to put your objdir inside the 'mozilla' directory or else you will get a ton of weird build errors." Well, my objdir is not under mozilla but two levels above and I had no problems building a checkout from Comm-central. I took the option from an example on <a class="internal" href="/en/Comm-central_source_code_(Mercurial)" title="En/Comm-central source code (Mercurial)">Comm-central_source_code_(Mercurial)</a> that says</p>
<pre class="eval">echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir-tb' &gt;&gt; .mozconfig
</pre>
<p>So I guess either the example is wrong and I just had luck it works. Or the above warning is wrong or at least outdated. In any case one of the two texts should be changed. --<a href="/User:robome" rel="custom">robome</a> 03 November 2008</p>
<h3 id="No_/mozilla_dir?">No /mozilla dir?</h3>
<p>As a new user I came here from <a class="internal" href="/En/Mozilla%20source%20code" title="En/Mozilla source code">Mozilla source code</a> , and my /src directory doesn't have /mozilla, so I can't find out where to put the config file. </p>
Revert to this revision