Open main menu

CDOT Wiki β

Changes

Assignment 1 paul

672 bytes added, 23:12, 19 September 2006
no edit summary
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DPS909 Assignment #1 – “Build the Fox”
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
By Paul Yanchun Gu
 
For Professor David Humphrey
 
 
This is my first experience in building such a big application. It took me a lot of time to do the research, I went to Google, went to ChatZilla, and went to blog, tried to get help. The following are my steps to build FireFox.
Here are the steps that I took to build Firefox under Windows with Visual Studio 2005.
<b><font style="font-size:120%"> Step 1: </font></b>Install Visual Studio .NET Professional 2005 by default.
<b><font style="font-size:120%"> Step 2: </font></b>Install
[http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#GNU_Tools_for_Microsoft_Windows_.28Cygwin.29 GNU Tools for Microsoft Windows (Cygwin)]
. Cywin is a Linux-like environment for Windows. It includes many utilities that are used to build firefox, such as gawk, perl, zip, and make. When selecting packages, you must make sure the version of make is 3.80.
<b><font style="font-size:120%"> Step 3: </font></b>Download and Extract the [http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/moztools-static.zip static Static moztools libraries] for Visual C++ to directory “c“C:\proj\moztools”.
<b><font style="font-size:120%"> Step 4: </font></b>Create a build script called C'''buildenv.bat''' containing following content in folder '''”C:\proj\buildenv.bat ”''' to setup the appropriate environment variables and paths. {| style="background:black; color:white" width="600"|-| C:\> cd c:\proj|-| C:\proj > copy con buildenv.bat|}
<pre>
</pre>
Step 5: Create a text file named .mozconfig containing following content in “c:\proj\mozilla” from command line.
<b><font style="font-size:120%"> Step 5: </font></b>Create a text file named .mozconfig containing following content in “C:\proj\mozilla” from command line. {| style="background:black; color:white" width="600"|-| C:\> cd c:\proj|-| C:\proj> md mozilla|-| C:\proj> cd mozilla|-| C:\proj\mozilla> copy con . mozconfig|}
<pre>
ac_add_options --enable-debug
# I'm using Canvas for my workac_add_options --enable-canvasDisable build Windows installation file
ac_add_options --disable-installer
</pre>
<b><font style="font-size:120%"> Step 6: </font></b>Login to the mozilla CVS repository, using the password anonymous.
{| style="background:black; color:white" width="600"|- | C:\> cd c:\proj|- style="background:black; color:white" width="600"| C:\proj> buildenv.bat|-| C:\proj> cvs login|}
<b><font style="font-size:120%"> Step 7: </font></b>Checkout the build script.
{| style="background:black; color:white" width="600"|-| C:\proj> cvs co mozilla/browser/config mozilla/client.mk|}
<b><font style="font-size:120%"> Step 8: Get </font></b>Download the full source file from CVS: .
{| style="background:black; color:white" width="600"|-| C:\proj> cd mozilla|-| C:\proj\mozilla> make -f client.mk checkout|}
<b><font style="font-size:120%"> Step 9: </font></b>Build the Firefox from source:.
{| style="background:black; color:white" width="600"|-| C:\proj\ mozilla> make -f client.mk build|}
== Resources ==
* [http://cs.senecac.on.ca/~david.humphrey/writing/firefox-win32-build.html Build Mozilla Thunderbird/Building Firefox/Sunbird on Microsoft Windows] * [http://ftpWin32 using Visual Studio .mozilla.org/pub/mozilla.org/mozilla/libraries/win32/moztools-static.zip GNU Tools for Microsoft Windows (Cygwin)NET 2005]
* [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#GNU_Tools_for_Microsoft_Windows_.28Cygwin.29 GNU Tools for Microsoft Windows (Cygwin)]
* [http://gemal.dk/mozilla/build.html Building Build Mozilla Thunderbird/Firefox /Sunbird on Win32 using Visual Studio .NET 2005Microsoft Windows]
* [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites Windows Build Prerequisites]
1
edit