Changes

Jump to: navigation, search

User:AaronMT

2,342 bytes added, 19:34, 13 September 2008
Mozilla Building
* '''Computer Used: ''' [http://www.notebookreview.com/default.asp?newsID=3359&review=Dell+Inspiron+1501 Dell Inspiron 1501]
* '''Date Performed: ''' --[[User:AaronMT|AaronMT]] 18:10, 13 September 2008 (UTC)
 
=== Ubuntu GNU/Linux - Mozilla Build (Minefield 3.1b1pre) ===
 
The process involved in building Mozilla Firefox (Minefield 3.1b1pre) on Ubuntu GNU/Linux involved many steps (all of which are new to me entirely):
 
* Hardware
** 2048MB Ram and 15GB left on this Linux partition
* Preparation
** Make sure Ubuntu is up to date <pre>sudo apt-get install update</pre>
** Linux Build Prerequisites
*** A recent POSIX Shell
*** A C++ compiler.
*** Perl 5.6 or higher. Older perl versions may work if you upgrade File::Spec to version 0.8
*** GNU make 3.79.1 or higher. Other varieties of "make" will not work.
*** CVS 1.11 or higher
*** the GTK2 widget toolkit
*** libXt-devel for X11/Intrinsic.h, X11/Shell.h
*** libIDL 0.6.3
*** zip 2.3
*** freetype 2.1.0
*** fontconfig
*** pkg-config 0.9.0
<i>Most if not all packages were installed with the following command</i>
<pre>apt-get build-dep firefox</pre>
<pre>sudo apt-get install libdbus-glib-1-dev curl</pre>
<pre>sudo apt-get install libcurl4-openssl-dev</pre>
==== '''Obtaining the Mozilla-Central Source & Installing/Configuring Mercurial''' ====
The next step, should you choose to install Firefox 3.01+ is to grab [http://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial) Mercurial] and set it up properly.
* <pre>sudo apt-get install python-setuptools python-dev build-essential </pre>
* <pre>sudo easy_install -U mercurial</pre>
===='''Configuration (Highly Suggested)'''====
*It is highly suggested that you follow these configuration instructions [http://developer.mozilla.org/en/Installing_Mercurial here]
===='''Fetching the latest trunk build of Firefox''' ====
*<pre>hg clone http://hg.mozilla.org/mozilla-central/ ~/Desktop/src</pre>
===='''Building on Ubuntu GNU/Linux'''====
[http://developer.mozilla.org/en/Configuring_Build_Options Configure] and build as usual using a .mozconfig file and make -f client.mk.
* My ~/.mozconfig
<pre># My first mozilla config
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --disable-static --enable-shared</pre>
* Building!
<pre>cd ~/Desktop/src/
make -f client.mk build</pre>
* Running Firefox
<pre>cd ~/Desktop/src/obj-i686-pc-linux-gnu/dist/bin/
./firefox</pre>
 
Total build time took about 45 minutes.
----
1
edit

Navigation menu