参考文档:https://developer.mozilla.org/en-US/docs/Simple_Firefox_build
Hardware requirements
Mozilla takes time to build. You need a development-class system:
- A fast processor, ideally with several cores.
- More than 2 GB of RAM for recent Firefox builds, 4 GB or higher recommended. 至少2G内存,建议4G以上
- 1.5 GB NTFS or 3 GB FAT disk space, or more 1.5G的磁盘空间,本人实际使用了5.33G
- Windows Vista or later recommended (the build should work on Windows XP though). 系统要求,本人使用的是WIN7 64
Overview
The Mozilla build process requires many tools that are not installed on most Windows systems. In addition to Visual Studio, you must install MozillaBuild, which is a bundle of software including just the right versions of bash, GNU make, autoconf, Mercurial, and much more.
The Mozilla codebase works with the following compilers ("Official" means this is what we use for the builds we release as the Firefox product):
VC8 (Visual Studio 2005) | VC9 (Visual Studio 2008) | VC10 (Visual Studio 2010) | VC11 (Visual Studio 2012) | |
---|---|---|---|---|
Firefox | Yes | Yes | Yes (Official) | Yes |
Note that installing both Visual Studio 2010 and Visual Studio 2012 on Windows 64-bit currently breaks the build. Also installing .NET Framework 4.5 when using Visual Studio 2010 breaks the builds. See Bug 772989 Comments 15 and 17 on this, according to http://support.microsoft.com/kb/2757355 installing Visual Studio 2010 SP1 should fix this problem.
本人安装的是VC10SP1,刚开始安装的是VC10,发现编译报错。
Install build prerequisites
Complete each of these steps otherwise you may not be able to build successfully, there are notes on these software requirements below.
- Make sure your system is up-to-date through Windows Update. (Windows XP needs at least Service Pack 2 and .NET Framework 2.0.)
- You may need to install one or more Windows SDKs. See Windows SDK versions for a quick guide.
- Install the June 2010 DirectX SDK (