CompileFirefoxNewVersion

Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2006-02-04 01:52:01
Size: 2244
Editor: 218
Comment:
Revision 8 as of 2006-02-23 21:11:40
Size: 2340
Editor: dD5770504
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
 1. Install necessary development packages:
{{{
    $ sudo apt-get install build-essential libgtk2.0-dev libidl-dev libxt-dev libgnomevfs2-dev
This is a guide for compiling firefox 1.5.* on Ubuntu Breezy 5.10.

1. Install necessary development packages:{{{
  $ sudo apt-get install build-essential libgtk2.0-dev libidl-dev libxt-dev libgnomevfs2-dev
Line 6: Line 7:
 1. Download and extract firefox source tar ball:
{{{
    $ wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5/firefox-1.5-source.tar.bz2
    $ tar jxvf firefox-1.5-source.tar.bz2
    $ cd mozilla
 1. Download and extract firefox source tar ball:{{{
  $ wget \
ht
tp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.1/source/firefox-1.5.0.1-source.tar.bz2
  $ tar jxvf firefox-1.5.0.1-source.tar.bz2
  $ cd mozilla
Line 13: Line 14:
 1. Put the following .mozconfig file in the firefox source directory:
{{{
   $ cat > .mozconfig <<EOF
 1. Create the .mozconfig file in the firefox source directory:{{{
  $ cat > .mozconfig <<EOF
Line 50: Line 50:
ac_add_options --disable-pedantic make -C firefox-bin/browser/installer/ ac_add_options --disable-pedantic
Line 58: Line 58:
  '''Note:''' You may need to adapt the --enable-optimize gcc parameters to your own platform.
Line 59: Line 60:
'''Note:''' You may need to adapt the --enable-optimize parameters for your platform.

1. Build firefox:
{{{
  $ make -f client.mk build
  $ make -C firefox-bin/browser/installer/
 1. Build firefox:{{{
  $ make -f client.mk build
  $ make -C firefox-bin/browser/installer/
Line 67: Line 65:
 1. Follow the instructions in FirefoxNewVersion to install your newly built firefox.  1. Follow the instructions in FirefoxNewVersion to install your newly built firefox-1.5.*.tar.gz, which can be found in mozilla/firefox-bin/dist/.

This is a guide for compiling firefox 1.5.* on Ubuntu Breezy 5.10.

  1. Install necessary development packages:

      $ sudo apt-get install build-essential libgtk2.0-dev libidl-dev libxt-dev libgnomevfs2-dev
  2. Download and extract firefox source tar ball:

      $ wget \
    http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.1/source/firefox-1.5.0.1-source.tar.bz2
      $ tar jxvf firefox-1.5.0.1-source.tar.bz2
      $ cd mozilla
  3. Create the .mozconfig file in the firefox source directory:

      $ cat > .mozconfig <<EOF
    . $topsrcdir/browser/config/mozconfig
    
    export MOZILLA_OFFICIAL=1
    export BUILD_OFFICIAL=1
    mk_add_options MOZILLA_OFFICIAL=1
    mk_add_options BUILD_OFFICIAL=1
    ac_add_options --enable-official-branding
    
    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-bin
    
    ac_add_options --enable-default-toolkit=gtk2
    ac_add_options --enable-pango
    ac_add_options --with-user-appdir=.mozilla
    ac_add_options --with-system-png=/usr
    ac_add_options --with-system-jpeg=/usr
    ac_add_options --enable-postscript
    ac_add_options --disable-installer
    ac_add_options --disable-xprint
    ac_add_options --enable-crypto
    ac_add_options --enable-strip-libs
    ac_add_options --enable-canvas
    ac_add_options --enable-svg
    ac_add_options --enable-svg-renderer=cairo
    ac_add_options --enable-system-cairo
    ac_add_options --enable-mathml
    ac_add_options --disable-tests
    ac_add_options --disable-gtktest
    ac_add_options --disable-debug
    ac_add_options --enable-xft
    ac_add_options --enable-optimize="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer"
    ac_add_options --with-system-zlib=/usr
    ac_add_options --without-system-nspr
    ac_add_options --enable-xinerama
    ac_add_options --enable-extensions=default
    ac_add_options --disable-pedantic
    ac_add_options --disable-long-long-warning
    ac_add_options --enable-single-profile
    ac_add_options --disable-profilesharing
    ac_add_options --enable-gnomevfs
    ac_add_options --disable-updater
    EOF
    • Note: You may need to adapt the --enable-optimize gcc parameters to your own platform.

  4. Build firefox:

      $ make -f client.mk build
      $ make -C firefox-bin/browser/installer/
  5. Follow the instructions in FirefoxNewVersion to install your newly built firefox-1.5.*.tar.gz, which can be found in mozilla/firefox-bin/dist/.

CompileFirefoxNewVersion (last edited 2008-08-06 16:35:53 by localhost)