Recently suddenly want to study the realization of Thunderbird, so in Win2k3 under the series of compiling, special will compile some of the experience with you share.
In fact, the compilation process is very simple, this article is compiled with VC8 (VISUAL STUDIO 2005).
Make the following preparations.
Thunderbird's project address is Http://www.mozilla.org/projects/thunderbird
1, download the source code, you can use the CVS, see Http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code
can also be downloaded to http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/
I am the 2.0.0.6 downloaded from HTTP
This is a version that has been officially released, because CVS in the code after the merge is often compiled does not pass, it is recommended that you if the first compilation, also from HTTP up and down.
After downloading, unzip and unzip, for example, extract to
The D:\mozilla directory. Note that the directory name of the Thunderbird must be named Mozilla, or compile the same.
In the Mozilla directory, create a file named Mozconfig
# This file specifies the build flags for Thunderbird. You can use it by adding:
# . $topsrcdir/mail/config/mozconfig
# to the top of your mozconfig file.
Mk_add_options Moz_co_project=mail
Ac_add_options--enable-application=mail
2, download winmg32.
can go to Http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.1.exe
After downloading, install to C:\mozilla-build, in fact, it is the default directory, it is recommended not to change
3. Running C:\mozilla-build\start-msvc8.bat
This will run a simulated shell and go to the Thunderbird source directory.
CD D:\mozilla
Make-f CLIENT.MK Build
After running for a period of time, the system will report a Msvcr80.dll not found
If you compile Xpt_link.exe, you are prompted not to find it.
Then put
D:\mozilla\xpcom\typelib\xpidl\xpidl.exe.manifest
Copy to D:\mozilla\dist\bin, rename to Xpt_link.exe.manifest
If you cannot find the manifest file, do not build your own xpt_link.exe.manifest file, the contents are as follows
<?xml version= ' 1.0 ' encoding= ' UTF-8 ' standalone= ' yes '?>
<assembly xmlns= ' urn:schemas-microsoft-com:asm.v1 ' manifestversion= ' 1.0 ' >
<dependency>
<dependentAssembly>
<assemblyidentity type= ' Win32 ' Name= ' Microsoft.VC80.CRT ' version= ' 8.0.50608.0 ' processorarchitecture= ' x86 ' publickeytoken= ' 1fc8b3b9a1e18e3b '/>
</dependentAssembly>
</dependency>
</assembly>
Then go into the shell and compile the make-f client.mk build
Then a long wait, the compilation process may be smooth, but when I compile, there are two errors.
One is wabTags.h, there is Unicode character at the comment, if you also encounter this hint, open this file, put some? And the Chinese garbled comments are deleted.
Another is a wabcdef.h in a rename, that good to do, the corresponding three lines to comment out, continue to compile, just fine.
Http://www.cnblogs.com/qiubole/archive/2007/08/28/872453.html
How to compile Thunderbird under win