Changes

Jump to: navigation, search

Assignment 1 Building FireFox

2,669 bytes added, 09:58, 20 September 2006
References
==Hardware==
*Intel Core Intel® Core™2 Duo Processor Processors @ 1.86GHz
*512 MB of RAM
*80 gig Samsung Hard Drive
## make the c:\proj folder. This will contain the source and object files that will be generated from the build and the checkout that will be executed later on.
## Execute the cygwin batch file (cygwin.bat) using cmd.exe. It successful a cygwin window will open with a prompt.
## Once at the prompt check to see that it can access the c:\proj folder. Type c: enter and then cd proj. If this directory
## Next type cvs logon
## You should see a prompt with your computer name.
## Type anonymous as the password.
## Before a build the code needs to be checked out to make sure that it has not been damaged in anyway.
## At the prompt enter: cvs co mozilla/browser/config mozilla/client.mk and a mozilla sub folder will be created inside the proj folder
## go to the mozilla folder: cd mozilla
## Create a file named .mozconfig using notepad or someother editor and place it in the mozilla directory. The contents for this file can be obtained from the Configure Build FireFox Options page at the Mozzilla.org developer center[ http://developer.mozilla.org/en/docs/Configuring_Build_Options#Firefox_Optimized_Static]. The last line of the .mozconfig file disables the installer which will makes NSIS unnecessary. If this line is missing or omitted then NSIS must be installed within it's own directory and not the bin directory. ## This must be added to the path.
## Download the source files by typing make -f client.mk checkout at the prompt
## To compile the source type make -f client.mk build
For == Problems I Encountered Along The Way ==The first problem I had was trying to start the build project. Normally I am use to work properly we must ensure we are the instructions being in one document. This time I had to look for multiple sources. In the cWindows Build Prerequisite page [ http:\proj folder before logging on #:to //developer.mozilla.org/en/docs/Windows_Build_Prerequisites]I had a choice in using CVS or the tar files to checkout build the source filesfirefox application. Issue I first tried to download the following commands at tar files of the Cygwin prompt #:accomplish this: FireFox source. The problem was that I could not make heads or tails of it.cd c: cd proj Logon The next problem that I had was when I tried to log onto the CVS using Cygwin I got the error message telling me that the CVSroot has not been specified. At I followed the instructions when it came to issuing the command prompt typefrom the Mozilla build page which was cvs -d :pserver: cvs logon Enter "anonymous" as the password (without the quotes) Checkout the code At the prompt enter: anonymous@cvs -mirror.mozilla.org:/cvsroot co mozilla/browser/config mozilla/client.mk mozconfig == Solutions ==   The above step creates a folder called mozilla within solution to this problem came in the form of Sherman who directed me to read Dave Humphries Guide to building FireFox and Elizabeth Chak's page involving the proj directorinstructions. Apparently I was suppose to use CVS. Navigate The solution to this folder by typing: cd mozilla Create the root problem turned out to be I was missing a few lines in my batch file named Cygwin.mozconfig and place it in bat. I found this cout while checking out Elizabeth's page.SET CVSROOT=:pserver:\proj\anonymous@cvs-mirror.mozilla directory. This file contains org:/cvsroot SET CVS_RSH=ssh With regards to the settings The contents of make checkout and the this file can be found within the #make buld commands I followed Sherman's advice and Liz's instructions from her page. == FireFox Build Screenshot ==[[Image:Firefox_build_about.mozconfig File section PNG]] == Conclusion == The building of the #AppendixFireFox for me has been a rewarding experience. You will notice that the last line It has broadened my understanding of the compiling in linux like envronments.mozconfig file disables the installer thus NSIS is It has exposed me to different software and many other resources I would not requiredthink to use in programming. I am looking forward to my next open source experience.  == Lessons Learned ==  I learned how to use and edit a wiki.I learned about Cygwin and how to download packages using CVS == Contributors ==[[User:David. If you omit this line then, NSIS humphrey|Dave Humphrey]] (2.17 dave or greaterhumph) [[User:Sherman|Sherman Fernandes]] (sjfern) must be installed and its install directory  [[User:Elichak|Liz Chak]] (and not the 'bin' directoryelichak) added to your path   == References ==  Windows Build Prerequisite page [ http://developer.mozilla.More information relating to the specifics of this file can be found in the Configuring Build org/en/docs/Windows_Build_Prerequisites] FireFox Options section of Page at the Windows build guide made available by the Mozilla Developer Mozzilla.org developer Center[ http://developer.mozilla. org/en/docs/Configuring_Build_Options#Firefox_Optimized_Static]Begin source file download by issuing the following command[[User:David.humphrey|Humphrey, David]] -[http: make //cs.senecac.on.ca/~david.humphrey/writing/firefox-win32-f clientbuild.mk checkout html Building Firefox on Win32]<br /> Once [[User:Elichak|Chak, Liz]] - Whose page was very helpful when I encountered the above step is completed issue the following command to compile the sourceerrors.[[User: make Sherman|Sherman Fernandes]] (sjfern) -f clientHis advice was invaluable whenever I got stuck with a problem.mk build
1
edit

Navigation menu