Difference between revisions of "User:Cgomes7/Firefox Build"

From CDOT Wiki
Jump to: navigation, search
(Lab 1 - Firefox Build)
Line 4: Line 4:
 
'''Resources'''
 
'''Resources'''
 
*[https://developer.mozilla.org/en/build_documentation Build Documentation]
 
*[https://developer.mozilla.org/en/build_documentation Build Documentation]
*[http://www.7-zip.org/ 7-zip]
 
  
  
Line 23: Line 22:
 
       start-msvc10.bat (VS 2010)
 
       start-msvc10.bat (VS 2010)
  
- Download the source code for the release version you would like to build. In this case, I downloaded the source code for [ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/4.0b9/source/ Firefox 4.0b9]
+
- The batch file will open a command line window. Navigate to the C: directory using the command "cd /c".
  
- Extract the Firefox source files.
+
- Download the source code for the release version you would like to build. In this case, I downloaded the most recent version. The command "hg clone http://hg.mozilla.org/mozilla-central/" will  copy the most recent version and place it in c/mozilla-central. Navigate into the the directory, "cd mozilla-central".
  
configure: error: --enable-application=APP was not specified and is required.
+
- Next we must create a .mozconfig file. This file will contain build options that will be used by the make file.
 +
 
 +
"
 +
 
 +
echo '. $topsrcdir/browser/config/mozconfig' > mozconfig
 +
echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt' >> mozconfig
 +
echo 'ac_add_options --disable-tests' "

Revision as of 13:01, 19 January 2011

Lab 1 - Firefox Build

Resources


Steps

- Check Firefox build prerequisites for the OS you will be using. I was using Windows 7. Windows Prerequisites

- Download the latest MozillaBuild package. This package contains other software that will be needed to successfully build Firefox.

- Install MozillaBuild. Default location is C:\mozilla-build.

- Run the one of the following batch files. In my case I am using visual studio 2010, so I lauched C:\mozilla-build\start-msvc10.bat.

     start-msvc8.bat  (VS 2005)
     start-msvc9.bat  (VS 2008)
     start-msvc10.bat (VS 2010)

- The batch file will open a command line window. Navigate to the C: directory using the command "cd /c".

- Download the source code for the release version you would like to build. In this case, I downloaded the most recent version. The command "hg clone http://hg.mozilla.org/mozilla-central/" will copy the most recent version and place it in c/mozilla-central. Navigate into the the directory, "cd mozilla-central".

- Next we must create a .mozconfig file. This file will contain build options that will be used by the make file.

"

echo '. $topsrcdir/browser/config/mozconfig' > mozconfig echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt' >> mozconfig echo 'ac_add_options --disable-tests' "