Open main menu

CDOT Wiki β

Changes

User:Jamesboston

328 bytes added, 01:05, 18 September 2008
Updated for mercurial source control
= Building Firefox =
''Note: These instructions are good for Firefox 3.01.*builds that use mercurial for source control. However, for Prior versions of Firefox 3.1.*, used cvs has been replaced with Mercurial. These notes are not yet updated to reflect thisfor source control.''
== Building on Windows Vista ==
(If you get a message saying this application did not install properly then you should see a windows dialog giving you the option to re-install
with the 'correct settings'. After that all should be well.)
http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.23.exe
Open a shell window by right clicking and using admin privileges:
c:\mozilla-build\start-msvc8.bat
Get the makefile instructions to pull When creating a working directory and checking out the source tree and it doesn't really matter where you put it in a directory called mozilla in , but avoid paths that contain spaces. If your user name doesn't have space you can checkout the source to your home directorylike this:(This will create a mozilla directory in your root i.e C:\Users\YourName or whatever.If a directory called mozilla already exits, even if it's empty, it will cause an error.)
cd
cvs -d mkdir mozilla cd mozilla hg clone http:pserver:anonymous@cvs-mirror//hg.mozilla.org:/cvsroot co mozilla-central/client.mk Checkout the source: cd ~/mozilla make -f client.mk checkout MOZ_CO_PROJECT=browsersrc
Create and open a hidden file called .mozconfig in your home directory:
For more detailed information about Mozilla building visit [http://zenit.senecac.on.ca/wiki/index.php/Real_World_Mozilla_Build_Mozilla_Lab Real World Mozilla Build Lab].
For more info about Visual Studio 2008 problems see [http://crashopensource.blogspot.com/2008/05/vista-building-with-vc9.html Lukas Blakk's blog]. For more information on using Mercurial to checkout Mozilla code see [http://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial) Mozilla Source Code].
== Building on Windows XP ==
ac_add_options --disable-vista-sdk-requirements
Another problem is that you may not be able to use your home directory because the path may have almost certainly has spaces. If that is the case, just put the mozilla directory in your root (ie. C:\mozilla) and put the .mozconfig file in that directory.
== Building on Ubuntu and Fedora ==
 
''The following instructions where written for Firefox 3.0.* builds. Use mercurial instead of cvs for newer builds.''
Install build pre-requisites for Fedora users:
== Building on OS X ==
Build pre-requisites and instructions for OS X can be found at the [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Firefox_Quick_Start Mozilla Developer Center.]
The following instructions where written for Firefox 3.0.* builds. Try [http://zenit.senecac.on.ca/wiki/index.php/User:Evmarbella Ezadkiel Villarico Marbella]'s page for more detailed instructions. Build pre-requisites and instructions for OS X can also be found at the [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Firefox_Quick_Start Mozilla Developer Center.] Although the those instructions are good, it may be necessary to take a few extra steps. For instance, the build may have trouble finding the glib dependency. If this happens, try adding this to your path:
export PATH=$PATH:/sw/bin;/sw/sbin