Changes

Jump to: navigation, search

User:Mckwan/Assignment1

278 bytes added, 19:16, 18 September 2006
no edit summary
* Configure environment variables by create a script called buildsetup.bat in C:\assignment1. (the following code from David's website)
<pre>
@echo off
rem --- CVS Setup SET CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot SET CVS_RSH=ssh
rem --- Setup the paths to the moztools build libraries set MOZ_TOOLS=C:\assignment1\moztools set GLIB_PREFIX=%MOZ_TOOLS% set LIBIDL_PREFIX=%MOZ_TOOLS%
rem --- Scrub these variables first SET INCLUDE= SET LIB= SET PATH=C:\;C:\windows\system32;C:\windows\system32\wbem
rem --- Prepend cygwin SET PATH=C:\cygwin\bin;%PATH%
rem --- Setup VC8 compiler environment vars CALL "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
rem --- Add glib/libidl to build environment SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin SET INCLUDE=%GLIB_PREFIX%\include;%INCLUDE% SET LIB=%GLIB_PREFIX%\lib;%LIB%
rem --- moztools comes last after glib/libIDL SET PATH=%PATH%;%MOZ_TOOLS%\bin
</pre>
* Run buildsetup.bat in C:\assignment1.
<pre> c:\assignment1> buildsetup </pre>
 
* Login to the mozilla CVS repository in C:\assignment1, type anonymous as password when prompted.
<pre> C:\assignment1> cvs login</pre>
* Check out the build script
<pre> C:\assignment1> cvs co mozilla/browser/config mozilla/client.mk
this will create mozilla directory within C:\assignment1
</pre>
* create a text file .mozconfig in mozilla (the following code from David's website)
<pre>
# Building Firefox Trunk with Debugging
. $topsrcdir/browser/config/mozconfig
# I'm using Canvas for my work
ac_add_options --enable-canvas
</pre>
• Check out the source code from cvs
<pre>c:\assignment1\mozilla> make -f client.mk checkout</pre>
• Finally do the build
<pre>c:\assignment1\mozilla> make –f client.mk build
Once the build is successful, firefox 3.0 will be in c:\assignment1\mozilla\firefox-objdir\dist\bin
</pre>
==Problems==
1
edit

Navigation menu