Changes

Jump to: navigation, search

User:Jamesboston

1,833 bytes added, 16:55, 8 May 2008
no edit summary
== Building on Windows Vista ==
 
 
Install Visual Studio:
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].
 
== Building on Ubuntu and Fedora ==
 
Install build pre-requisites for Fedora users:
su -c "yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development'"
 
Install build pre-requisites for Ubuntu users:
sudo apt-get install build-essential
sudo apt-get build-dep mozilla-firefox
 
Get the makefile instructions to pull the source tree and put it in a directory called mozilla in your home directory:
cd
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
 
Checkout the source:
cd ~/mozilla
make -f client.mk checkout MOZ_CO_PROJECT=browser
 
Create and open a hidden file called .mozconfig in your home directory:
gedit ~/.mozconfig
 
Add the following lines to .mozconfig
# My first mozilla config
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
. $topsrcdir/browser/config/mozconfig
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --disable-static --enable-shared
 
Start the build (which will take AT LEAST one hour):
cd ~/mozilla
make -f client.mk build
 
Once the build is finished you should set the following environment variable to turn-off assertion dialogs:
export XPCOM_DEBUG_BREAK=warn
 
When you run Firefox for the first time, create and select a new profile called "development" (or any name of your choice) to avoid corrupting your current profile. You can do this while running your current version of Firefox using these command line options:
~/mozilla/obj*/dist/bin/firefox -Profilemanager -no-remote
 
The finished build can be found in the ~/mozilla/obj*/dist/bin directory.
 
Run the file "mozilla" or "firefox", not the binary "mozilla-bin" or "firefox-bin".
 
For more detailed information visit [http://zenit.senecac.on.ca/wiki/index.php/Real_World_Mozilla_Build_Mozilla_Lab Real World Mozilla Build Lab].

Navigation menu