Tuesday, September 22, 2009

Mozilla Build

I am excited to see how long it will take me to build mozilla on my computer. First i need to set up my computer, i have Ms Visual Studio 2008 so i though it would be easy. I just didn't realize it would be so time consuming.
I am using this simple firefox build guide.
I downloaded and installed the mozillaBuild from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe
I cloned mozilla with the start-msvc9 tool found in the mozillaBuild directory. To clone I used this command: hg clone https://hg.mozilla.org/mozilla-central/ mozilla
This was an easy step, however i was under the impression that the mozilla directory would be found in the same directory as the start-msvc9 tool, it wasn't. After some time, i figured out to use the pwd command which pointed me to the right location.
I am currently installing Visucal C++ 2008 Express edition from http://www.microsoft.com/Express/vc/#webInstall but it is complaining that I do not have Microsoft Visual Studio 2008 Service Pack 1 so I have downloaded the installer from http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en which is currently installing..... it said its gonna take 28min yikes.......

Ok, so now that i have everything downloaded, I think i am ready to build.

1.# Setup a basic mozconfig file

echo '. $topsrcdir/browser/config/mozconfig' > mozconfig # let's build Firefox...

echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release' >> mozconfig # ...in this directory...

echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> mozconfig # ...quickly.

2.# Build

make -f client.mk


So the first time i did this i got a tone of output during the first 20 min and then got nothing for 1.5 hrs. I spoke to ppl on irc and they informed me that I should check to make sure the tree is green before cloning. U can check using http://isthetreegreen.com/.

I decided to clone again when the tree was green and rebuild. It took 30min but i got 2 errors. I am trying to figure out a fix or a problem.

No comments:

Post a Comment