Record this to the Mozilla Thunderbird compilation process under Win2k, detailed compilation process See http://www.mozilla.org/build/
1. Download Source Code, extract to F: / mozilla
2. Compile the environment
(1) Cygwin, you need to install the following module
ash - UNIX-like command line interpreter shell coreutils - GNU core utilities (includes fileutils, sh-utils, and textutils) diffutils - file comparison utility findutils gawk - pattern matching language (Devel category) grep - text search tool make - dependency analyzer for software builds (Devel category) perl - a scripting language used to control parts of the build (Interpreters category) sed - a search and replace language unzip - zip file extraction (Archive category) zip - Zip File Creation (Archive Category) (2) Netscape Wintools
http://ftp.mozilla.org/pub/mozilla.org/mozilla/source/wintools.zip
Unzip to the temporary directory C: / TEMP
Set the installation directory:
SET MOZ_TOOLS = C: / MozTools
Installation: Enter the temporary directory, execute install.bat
(3) Compiler
Use MSVC 7.1 here
(4) GLIB & Libidl library of MSVC 7.1
ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/
Extraffect of Extraction F: / Mozilla / EXLIB
(5) Edit Compilation Profile
In the source code root directory (here F: / Mozilla), create a new file: ".mozconfig"
content:
------------------------------
. $ TOPSRCDIR / MAIL / Config / Mozconfig
MK_ADD_OPTIONS MOZ_OBJDIR = @ TOPSRCDIR @ / OBJ
AC_ADD_OPTIONS --DISABLE-OPTIMIZE
AC_ADD_OPTIONS --ENABLE-Debug
AC_ADD_OPTIONS - Disable-Tests
------------------------------
More information about the configuration file is visible:
Http://www.mozilla.org/build/configure-build.html
(5) Configure environment variables
Running a Visual Studio .NET 2003 command line environment variable profile: vsvars32.bat
SET MOZ_TOOLS = C: / MozTools
Path = f: / mozilla / exLib / VC71;% PATH%;% moz_tools% / bin; c: / cygwin / bin3. Start compilation (1) CMD enters the command line (2) Configure environment variables, see 2. (5) (3) Enter Cygwin Environment CD C: / Cygwincygwin (4) Start Compiling CD / CygDrive / F / Mozillamake -f Client.mk Build in Cygwin 1. Do not install Mozilla, Wintools, Glib, Libidl to Cygwin In the directory 2.visual studio .NET 2003 has a bug that causes compilation failure to modify% vs2003% / VC7 / PlatformSDK / include / WABTAGS.H, remove the Chinese characters and "?" (Chinese characters and "? "The reason is that there is a non-standard character A0 in this file) See: http://www.mozilla.org/build/win32.html
http://www.mozilla.org/build/
Http://www.mozilla.org/build/configure-build.html
Repost, please indicate the source