Saturday 5 July 2014

My first firefox build up

Hello everyone,
finally that happend............
I built firefox in  ubuntu 12.04.It took  around 3 week to build.After doing all requirement that needed for building I tried to build.But  it showed some errors when I run the command ./mach build(This command will is needed to build the firefox). But then also I tried a lot and finally I built successfully.




 simple instructions to build firefox in Linux



Build prerequisites :-

Hardware prerequisites:-

1) Recommended: 4GB of RAM (having only 2GB RAM and 2GB swap may give memory errors during compile)

2)High speed internet

 Set up:-

You can run the following command to install all system dependencies :-

wget https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py

  If you have already checked out the source code via Mercurial or Git you can also use mach with the bootstrap command:

./mach bootstrap


To Get the source code 

 command for getting source code from Mozilla's Mercurial code repository.

hg clone https://hg.mozilla.org/mozilla-central
 
But it didn't work for me properly so I downloaded the mercurial bundle instead of using hg clone.The following link to download mercurial bundle.



Follow the steps after downloading the bundle :-

1)  Initialize a new repository (in a directory called 'mozilla-central' here):

   mkdir mozilla-central 
   hg init mozilla-central

2) Un-bundle the bundle file to that repository:
    
   cd mozilla-central 
   hg unbundle /path/to/your/bundle.hg

3)  Add the following lines to the file mozilla-central /.hg/hgrc(we have to create the file)

  [paths] 
  default = https://hg.mozilla.org/mozilla-central/

4) Update the repository to get all the changes 

   hg pull 

5)Check out a working copy from your new up to date repository

   hg update

  •   Then go ahead and start building using the command

   ./mach build
  • run the newly created Firefox instance, use the mach command
    ./mach run 
  

 



 

 




 

 

 

     

No comments:

Post a Comment