So I spent countless of days trying to build Mozilla, finally I succeeded (I think). After installing and uninstalling programs I found that this is all u need:
1. Visual Studio 2008 (make sure u select all options on install)
– I believe that on the Mozilla Developer site this is reffered to as Visual C++ 9 (VS 2008)
– When you open VS2008 & Select the Help Tab & open About u see : Microsoft Visual Studio Version 9.0.21….., Microsoft .NET framework Version 3.5 SP 1.
2. Download mozilla- build
– make sure this is the latest version, especially if u get build errors
– install/extract this to any directory
3. get the Mozilla source code using the start-msvc9 application found in mozilla-build
– when you 0pen the application you may need to change the path; use pwd to check the path, use cd +new path to change the path
– to get the Mozilla source code use: hg clone https://hg.mozilla.org/mozilla-central/ mozilla
– to update the Mozilla source code use: hg pull -u (note that u must be in the mozilla directory created above to use this command)
4. make the mozconfig file using the start-msvc9 application found in mozilla-build
– use the cd command to change to the mozilla directory created in step 3
– write each of the following lines pressing enter after each one: Make sure to include all ” and ‘
echo ‘. $topsrcdir/browser/config/mozconfig’ > mozconfig
echo ‘mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release’ >> mozconfig
echo ‘mk_add_options MOZ_MAKE_FLAGS=”-j2″‘ >> mozconfig
5. build the source code using the start-msvc9 application found in mozilla-build and the mozconfig file written in step 4
– use the cd command to change to the mozilla directory created in step 3
– use this command to run the build: make -f client.mk
Now, I am running Vista on a Windows machine and the build took me ONLY 10 min! I am very surprised. To make matters worse, there is no message saying that the build was successful. Then again there was no error messages. I will have to see if I can change that.
Awesome guide Anna.