--with-windows-versionis valid for mozilla-1.9.1 and mozilla-1.9.0 too.
Mozilla supports building against several versions of the Windows SDK. Several features will be disabled if you build with an SDK older than the default, which means that you'll have to specify a non-default SDK version explicitly.
Follow the instructions for whichever version of Visual C++ you're using.
Visual C++ 9 (VS2008) Professional
You don't need to download anything -- everything that you need comes in the package. Make sure that the SDK is selected at install time.
Visual C++ 8 (VS2005) Professional
Download and install the Windows Vista SDK.
Visual C++ 7.1, Visual C++ 8 (VS2005) Express or Visual C++ 9 (VS2008) Express
- Download and install the Windows Vista SDK.
Windows Vista SDK
This is the SDK that official Mozilla builds are built against. Features that depend on this SDK include:
- Windows Vista parental controls
- File associations and application registration on Vista and above
- Ability to display the UAC shield icon in the UI
- Thunderbird Windows Search integration
There are two ways to obtain it:
- Download the Windows Vista SDK from the Microsoft Download Center.
- Use Visual Studio 2008 Professional.
Note that the downloadable version of this SDK does not come with ATL headers.
If you would like to specify this SDK explicitly, add
ac_add_options --with-windows-version=600 to your .mozconfig.
Windows Server 2003 R2 Platform SDK
This is your only option if you're on Windows 2000. You'll also need to install this if you are using a free version of Visual C++ and want to build code that uses ATL.
You can download the SDK from the Microsoft Download Center.
- You need to install at least the "Windows Core SDK", "Web Workshop (IE) SDK", and the "Data Access Services (MDAC) SDK".
- For all SDKs, you may choose not to install Sample Code and Documentation to save space and download time.
If you're building only with this SDK, you will need to add
ac_add_options --with-windows-version=502 to your .mozconfig.
ac_add_options --disable-vista-sdk-requirementsto your .mozconfig instead.
Windows 7 SDK
There is preliminary support for the Windows 7 SDK in configure.in. Currently, nothing in the tree depends on this SDK.
Note that this SDK, like the Vista SDK, does not come with ATL headers.
If you're feeling particularly adventurous and would like to build with it, you can add
ac_add_options --with-windows-version=601 to your .mozconfig.
The Windows SDK for Windows Server 2008 is not supported, and has been found to cause the following problems:
- breaks the vcvars32.bat file from Visual Studio 2008
- no longer sets the correct PATH for the .NET framework
- causes an invalid PATH which breaks the Mozilla build
If you have the Windows Server 2008 SDK installed, uninstall it. The SDK will break builds even if you try to use other SDKs.
Other possible workarounds:
- use another SDK (the one shipped with Visual Studio 9)
- delete the vcvars32.bat file and repair your Visual Studio installation with the setup program
- edit vcvars32.bat to correct the problem (see http://blogs.msdn.com/windowssdk/arc...vironment.aspx "Workaround: Repair the VS2008 command line build environment by editing c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat manually").
SDKs older than the Server 2003 R2 Platform SDK aren't supported either.