Changes

Jump to: navigation, search

User:RichardChu/Assignment 01: Building Firefox

342 bytes added, 15:45, 19 September 2006
The Build
== The Build ==
Before Mozilla may be built, environment variables referencing the location of the platform SDK, location of where Cygwin is installed, and location of where the moztools package is installed need needs to be set up. Therefore, [http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites#Configure_the_Environment This this batch script] was copied and pasted into a text editor. The ''MOZ_TOOLS'' environment variable was modified from ''C:\moztools'' to ''C:\proj\moztools''. The batch script was saved as ''ConfigEnv.bat'' to ''C:\proj''. The resulting batch script is:
rem --- Set HOME so that cvs and ssh work correctly
bash --login -i
A command prompt was opened (Start -> Run... -> cmd) and the present working directory was changed to ''C:\proj''. The batch script was executed to ensure that there are were no errorsin it. If there were no errors, you should see the Cygwin shell prompt.
The file ''link.exe'' located in ''C:\cygwin\bin'' was renamed to ''_link.exe'' based on the recommendation [http://developerthat if you don't, you may get a configure error regarding the linker version being different. After executing the ''ConfigEnv.mozillabat'' script, we should be in the cygwin shell.org/en/docs/Windows_Build_Prerequisites#Configure_the_Environment located here]Once there, the present working directory was changed to ''C:\proj'' using this command:  cd C:\proj Once we are in the correct directory, it is time to checkout the makefile that will be used to checkout the rest of the source files in the tree.To do this, the following command was executed:
After executing the ConfigEnv.bat script, we should be in the cygwin shell. Once there, the present working directory was changed to ''C:\proj''. Now that we are in the correct directory, it is time to checkout the makefile that will be used to checkout the rest of the source in the tree. To do this, the following command was executed:
cvs -d :pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
Next, a ''.mozconfig '' configuration file was created based on the information located at the [http://developer.mozilla.org/en/docs/Configuring_Build_Options Configuring Build Options] page. The resulting ''.mozconfig '' configuration file contained the following configutation configuration options: 
. $topsrcdir/browser/config/mozconfig
make -f client.mk build
 
If the build environment was set up properly, the build should proceed without interruption until completed. If this is the case, then just sit back, relax, and watch the scroll thumb slowly decrease in size for approximately an hour.
== Problems Encountered and Solutions ==
1
edit

Navigation menu