Open main menu

CDOT Wiki β

User:Minooz/OSD600/buildFF

< User:Minooz‎ | OSD600
Revision as of 23:19, 19 January 2011 by Minooz (talk | contribs)

Build Firefox

For building firefox I started the process following the instruction on annasob's blog and from v Here are the information that were useful for me to get the set of instructions and to figure out how to deal with errors. One thing that was really helpful to me was annasob's tip on separating mozilla-build (where the build package is installed) and mozilla-central(where the source is cloned from Mozilla repository). I didn't figure out why it was so slow though on both Vista and Win 7.

  • Steps to build firefox

I followed the instructions on annasob's blog on how to build firefox on different platforms, also took a look at Build instructions @ developer.mozilla.org.

First, I tried to build firefox on Vista:

Intel(R) Processor D CPU 2.17 GHz
2GB DDR2 memory
Windows Vista 32bit
Visual Studio 2010

and this was my .mozconfig:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release
mk_add_options MOZ_MAKE_FLAGS="-j2"
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
ac_add_options --disable-optimize
ac_add_options --enable-debug

Then I started to build it on Windows 7:

Intel(R) Processor D CPU 3.20 GHz
4GB DDR2 memory
Windows 7 64bit
Visual Studio 2008

I tried to build based on the same .mozconfig file, but the first error I got was related to SDK. I needed to upgrade SDK version based on theserecommendations to SDK 7, and the .Net Framework to 4. Also I needed to change the SDK version in the SDK configuration tool to 7.1.

At the end, the build was successfully done after 2 hours on Win 7 and on Vista it's not completed yet after more than 4 hours!