[or-cvs] r9223: Firefox build setup complete (phew!), all problems faced hav (in torpedo/trunk/src: . firefox)

sn275 at seul.org sn275 at seul.org
Sun Dec 31 02:47:39 UTC 2006


Author: sn275
Date: 2006-12-30 21:47:36 -0500 (Sat, 30 Dec 2006)
New Revision: 9223

Added:
   torpedo/trunk/src/firefox/
   torpedo/trunk/src/firefox/.mozconfig
   torpedo/trunk/src/firefox/build-notes
   torpedo/trunk/src/firefox/build-sh.bat
Log:
Firefox build setup complete (phew!), all problems faced have been documented in the build-notes file. 

To build firefox on windows, read the build-notes file.
1) Read and follow instructions for configuration very carefully.
2) copy the build-sh.bat and .mozconfig into top source directory.
3) Fire off the build with make -f client.mk build
4) for a clean build delete config.cache before step 3.





Added: torpedo/trunk/src/firefox/.mozconfig
===================================================================
--- torpedo/trunk/src/firefox/.mozconfig	2006-12-30 19:38:28 UTC (rev 9222)
+++ torpedo/trunk/src/firefox/.mozconfig	2006-12-31 02:47:36 UTC (rev 9223)
@@ -0,0 +1,27 @@
+# Building Firefox Trunk with Debugging
+. $topsrcdir/browser/config/mozconfig
+
+# Put all obj files in one place, not in src tree
+mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-objdir
+ac_add_options --disable-static
+ac_add_options --enable-shared
+
+# Debug Build Setup Options
+ac_add_options --disable-optimize
+ac_add_options --enable-debug
+
+# I'm using Canvas for my work
+#ac_add_options --enable-canvas
+
+# I disabled the installer
+ac_add_options --disable-installer
+
+# midl pre-processing problems with cl.exe
+ac_add_options --disable-accessibility
+ac_add_options --disable-activex
+ac_add_options --disable-activex-scripting
+
+mk_add_options MOZ_CO_PROJECT=browser
+ac_add_options --enable-application=browser
+
+


Property changes on: torpedo/trunk/src/firefox/.mozconfig
___________________________________________________________________
Name: svn:executable
   + *

Added: torpedo/trunk/src/firefox/build-notes
===================================================================
--- torpedo/trunk/src/firefox/build-notes	2006-12-30 19:38:28 UTC (rev 9222)
+++ torpedo/trunk/src/firefox/build-notes	2006-12-31 02:47:36 UTC (rev 9223)
@@ -0,0 +1,107 @@
+Vidalia:
+
+Default tor path: 
+C:\Program Files\Tor\tor.exe
+
+Default tor config: 
+C:\Documents and Settings\<win-userid>\Application Data\Vidalia/torrc
+
+
+portable firefox code:
+
+cvs -z3 -d:pserver:anonymous at portablefirefox.cvs.sourceforge.net:/cvsroot/portablefirefox
+
+cvs -z3 -d:pserver:anonymous at portablefirefox.cvs.sourceforge.net:/cvsroot/portablefirefox co -P 
+
+use tar to open the source file and not winzip!! since winzip doesn't bother about zero length files, and this can lead to problems in the build.
+
+
+Windows build pre-requisites:
+http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites
+
+build instructions (configuration, build, install)
+http://developer.mozilla.org/en/docs/Configuring_Build_Options
+
+someone's experience of building firefox for an assignment
+http://zenit.senecac.on.ca/wiki/index.php/User:Mdsouza/Assignment_01:_Build_the_Fox
+
+another user's experience:
+http://cs.senecac.on.ca/%7Edavid.humphrey/writing/firefox-win32-build.html
+
+mv link.exe glink.exe
+
+set HOME=c:\firefox2\mozilla
+
+ln -s /bin/bash /bin/sh
+
+compiling firefox:
+
+
+Problem 1: bad file or directory /build/unix/modules
+fix: 1) set home directory
+     2) and used tar instead of winzip to open the firefox-2.0-source.tar
+
+
+Problem 2: absent .mozconfig 
+
+populated topsrcdir/.mozconfig with
+# Building Firefox Trunk with Debugging
+. $topsrcdir/browser/config/mozconfig
+
+# Put all obj files in one place, not in src tree
+mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-objdir
+ac_add_options --disable-static
+ac_add_options --enable-shared
+
+# Debug Build Setup Options
+ac_add_options --disable-optimize
+ac_add_options --enable-debug
+
+# I'm using Canvas for my work
+ac_add_options --enable-canvas
+
+# I disabled the installer
+ac_add_options --disable-installer
+
+Problem 3: build complained about the absence of enable-application= in the configure options.
+
+Fix: added the following to .mozconfig
+
+mk_add_options MOZ_CO_PROJECT=browser
+ac_add_options --enable-application=browser
+
+
+Problem 4: unable to execute cl.exe error.  Although it cl.exe ran fine on the command line.
+
+/cygdrive/c/firefox2/mozilla/build/cygwin-wrapper midl -no_robust -Oicf /cygdriv
+e/c/firefox2/mozilla/accessible/public/msaa/ISimpleDOMNode.idl
+Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0361
+Copyright (c) Microsoft Corporation 1991-2002. All rights reserved.
+Processing c:\firefox2\mozilla\accessible\public\msaa\ISimpleDOMNode.idl
+Processing c:\firefox2\mozilla\accessible\public\msaa\ISimpleDOMNode.idl
+midl : command line error MIDL1004 : cannot execute C preprocessor cl.exe
+make[5]: *** [done_gen] Error 236
+
+fix: ac_add_options --disable-accessibility
+ac_add_options --disable-activex
+
+
+Problem 5: 
+checking for gawk... gawk
+checking for nsinstall... /cygdrive/c/moztools/moztools/bin/nsinstall
+checking for gcc... cl
+checking whether the C compiler (cl  ) works... no
+configure: error: installation or configuration problem: C compiler cannot creat
+e executables.
+*** Fix above errors and then restart with "make -f client.mk build"
+make[1]: *** [configure] Error 1
+make[1]: Leaving directory `/cygdrive/c/firefox2/mozilla'
+make: *** [/cygdrive/c/firefox2/mozilla/firefox-objdir/Makefile] Error 2
+
+
+fix:
+- put a windows style path for MSSDK and VCVARS instead of the unix-style cygdrive path.
+- ran vcvars32.bat
+- removed config.cache
+- rebuild
+


Property changes on: torpedo/trunk/src/firefox/build-notes
___________________________________________________________________
Name: svn:executable
   + *

Added: torpedo/trunk/src/firefox/build-sh.bat
===================================================================
--- torpedo/trunk/src/firefox/build-sh.bat	2006-12-30 19:38:28 UTC (rev 9222)
+++ torpedo/trunk/src/firefox/build-sh.bat	2006-12-31 02:47:36 UTC (rev 9223)
@@ -0,0 +1,58 @@
+rem --- Set HOME so that cvs and ssh work correctly
+rem --- cvs uses HOME to locate your .cvspass file, and ssh to locate your .ssh file
+rem --- if you are using ssh, your HOME should match the home directory specified in /etc/passwd. See http://www.cygwin.com/faq/faq0.html.
+set HOME=/cygdrive/c/
+
+rem --- Set VCVARS to wherever the MSVC vcvars.bat file is found
+set VCVARS="c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"
+CALL %VCVARS%
+
+rem --- Set MSSDK to wherever the MS SDK is installed
+rem --- The separate SDK is only required for MSVC6
+set MSSDK="c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK"
+
+rem --- Set MOZ_TOOLS to wherever you have the moztools packaged installed
+set MOZ_TOOLS=/cygdrive/c/moztools/moztools
+
+rem --- Set CYGWINBASE to wherever cygwin is installed
+rem --- Do not use CYGWIN or else cygserver, cygrunsrv, and other cygwin services will not function properly.
+rem --- The CYGWIN variable is also used to sort of change the behaviour of Cygwin.
+set CYGWINBASE=c:\Cygwin
+rem --- Make sure Cygwin does not print out a DOS style path warning
+set CYGWIN=nodosfilewarning
+
+rem --- If you are using VC7 or VC7.1, you must set GLIB_PREFIX and LIBIDL_PREFIX
+set GLIB_PREFIX=/cygdrive/c/moztools_vc7/vc71
+set LIBIDL_PREFIX=/cygdrive/c/moztools_vc7/vc71
+
+rem --- Prepend Cygwin path
+rem --- This is necessary so that cygwin find is ahead of windows find.exe in the PATH, but cygwin link is after MSVC link.exe.
+PATH=%CYGWINBASE%\bin;%PATH%
+
+rem -- make path
+set PATH=%CYGWINBASE%\usr\bin\;%PATH%
+
+rem --- Set MSVC environment vars
+call %VCVARS%
+
+rem --- Prepend SDK paths
+rem --- Only required for MSVC6
+set PATH=%MSSDK%\bin;%PATH%
+set INCLUDE=%MSSDK%\include;%INCLUDE%
+set LIB=%MSDDK%\lib;%LIB%
+
+rem --- Add glib/libidl to build environment
+rem --- Only needed for VC7 or 7.1
+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
+
+rem --- Now the PATH variable contains:
+rem MS-SDK; MSVC; Cygwin; Windows; glib/libIDL; Moztools
+
+rem --- Typically the last thing the script does is launch a cygwin shell
+rem --- WARNING: This may reset your carefully setup path! Check your /etc/profile and ~/.profile files.
+bash --login -i
\ No newline at end of file


Property changes on: torpedo/trunk/src/firefox/build-sh.bat
___________________________________________________________________
Name: svn:executable
   + *



More information about the tor-commits mailing list