I have successfully built mozilla on my laptop running Windows. Note, my laptop is running vs 2003 and not the recommended vs 2005. I have that on desktop and will be doing the build before I go to bed tonight.
Anyhow, I figured I would take this time to document the steps I took to do it:
- Download the build tools. For windows:
http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites. Because I’m using vs 2003 on laptop, I ran start-msvc71.bat
- Create a directory where you would like your source code to go. Note that path name cannot contain spaces.
- use cvs to checkout the source code. The quick start guide at:
shows the three commands needed to checkout the source for the browser and put it into a directory called mozilla. NOTE. running all 3 lines will get you the source.
- after getting the source, go into the top directory of the source and create a folder where you will want your object files to go. This will allow you to clean the build and rebuild more easily. This folder can have any name.
- Create a .mozconfig file in your top directory. This file specifies the options. The options I specified enabled debugging, disabled optimizing, specified the location of my object files. It was four lines long and contained:. $topsrcdir/browser/config/mozconfig
- Build it with the command:
make -f client.mk build
- wait for about an hour (hoping it will be less on my desktop).
- test it out. Suppose that you had named the directory where you want the object files to go in step 4 “objectfiles”, your executable will be in objectfiles\dist\bin
Special note. The first time I tried to test it out, I had firefox already running. So when I went to run the executable that I had just built, I spawned another window of firefox 2. I had to close off firefox 2 first before running it.