How to build Firefox from the CVS source tree |
These are some very simple instruction for compiling Mozilla Firefox. Why are they simple? Because that's all that's required. It's a short process and a lot simpler than anyone makes out. While it is short, it could be a lot shorter still.
If you want pre-compiled binaries, have a look at: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/contrib/latest-trunk/. FreeBSD nightly builds are availible there also.
I have a Unix shell script which creates the .mozconfig, does the compile, and can create distribution tarballs if you wish it. it is availible at: http://silverwraith.com/papers/buildmoz.sh
Use these commands on your unix shell to build Phoenix:
MOZ_PHOENIX=1BUILD_OFFICIAL=1export MOZ_PHOENIXexport BUILD_OFFICIALmk_add_options MOZ_PHOENIX=1mk_add_options BUILD_OFFICIAL=1ac_add_options --prefix=/usr/local/firefoxac_add_options --disable-testsac_add_options --disable-debugac_add_options --disable-mailnewsac_add_options --disable-composerac_add_options --disable-calendarac_add_options --disable-xineramaac_add_options --disable-ctlac_add_options --disable-mathmlac_add_options --disable-ldapac_add_options --disable-ldap-experimentalac_add_options --disable-mailnewsac_add_options --disable-js-ultrasparcac_add_options --disable-gtktestac_add_options --disable-sharedac_add_options --enable-staticac_add_options --enable-cryptoac_add_options --enable-optimize="-O2 -funroll-loops -ffast-math -fschedule-insns2 -fexpensive-optimizations"./configure into the .mozconfig file. You can also change
--disable to --enable if you wish to enable a component that I
have disabled.cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/client.mkcd mozillamake -f client.mkgmake -f client.mk)This will download all the sources from the Mozilla CVS server, and compile it to make
Phoenix. It will put the compile sources in mozilla/dist.
Once that is done, you need to build a distribution tarball using the instructions below.
This involves a few more steps than it should have to, but hopefully this will be cleared up
as soon as Firefox becomes the main Mozilla browser.
First we need edit mozilla/xpinstall/packager/Makefile and replace all occurances of
mozilla-bin with firefox-bin
Now, cd mozilla/xpinstall/packager and run: MOZ_PKG_APPNAME=firefox
make
This will create a tarball of Firefox and put it in: mozilla/dist. On my system,
the tarball is called: firefox-i386-unknown-freebsd4.8.tar.gz
Once you have created the tarball using the instructions above, installing is very simple.
The tarball extracts all the files into a directory called "firefox".
Change to the directory under which you wish to create the firefox directory. I
like to use /usr/local
Then run: tar -zxvf <path to tarball>
The firefox executable should be availible as firefox/firefox.
| Counter: 42841 page |
| views since Dec 2002 |