mozilla

Revision 47837 of Windows 8

  • Revision slug: Windows_8
  • Revision title: Windows 8
  • Revision id: 47837
  • Created:
  • Creator: gps
  • Is current revision? No
  • Comment more steps; 146 words added

Revision Content

Windows 8 will eventually support compiling mozilla-central and related repositories and products. This page documents the steps to get a working Windows 8 development environment.

Installing Windows 8

The Windows 8 Developer Preview can be obtained from http://msdn.microsoft.com/en-us/windows/home/.

If you want to run Windows 8 on Virtualbox, see http://www.groovypost.com/howto/inst...vm-virtualbox/.

Installing Windows 8 is pretty straightforward for an OS install. These instructions assume you know how to do that.

As for hardware resources of the VM or Virtualbox, you should be able to fit in the base OS, all the dependencies, source and build in a 30GB partition. For memory, 2GB should be considered the minimum. As always, give it as much as you can.

Install Developer Tools

As with the existing Windows 7 development steps, you'll need to install a number of prerequisites.

Visual Studio 2011

The Visual Studio 2011 Developer Preview can be downloaded from https://www.microsoft.com/download/e...ng=en&id=27543. The download there is just a simple installer which will download and install the real components. When you install VS2011, have something else to do because it takes a long time.

DirectX SDK

Optionally download and install the DirectX SDK from http://www.microsoft.com/download/en...ang=en&id=6812.

If you don't install the DirectX SDK, add the following to your .mozconfig:

ac_add_options --disable-angle

Windows SDK

The Windows SDK is a little tricky for Windows 8. Currently, the Windows 8 SDK is only available to MSDN subscribers. If you have access, you can grab it from MSDN under the filename en_windows_developer_preview_wdk_x86_x64_741966.zip. You will likely find it under the Windows Developer Preview section listed as Windows Developer Preview WDK (x86 and x64).

Theoretically, you can install the Windows 7 (or 7.1) SDK as a substitute. But, the Windows SDK isn't technically required (the files in Visual Studio 2011 will suffice). If you want to install this SDK, the download you want is at http://www.microsoft.com/download/en...s.aspx?id=8279. Like Visual Studio, this is a web downloader, so the bulk of the downloading is performed while running the installer. The default install options should be sufficient.

mozilla-build Bundle

mozilla-build (the package that provides all the utilities for building on Windows) does not yet have a shipped version that supports Windows 8. So, you'll need to obtain the repository. Download https://hg.mozilla.org/mozilla-build/archive/tip.zip and uncompress to somewhere (like c:\src\mozilla-build).

Until bug 686837 lands, you'll need to apply the patch(es) in that bug manually over the contents of mozilla-build.

Compiling

Start up your compilation environment by running start-msvc11.bat from mozilla-build. You should see output resembling the following:

"Mozilla tools directory: C:\mozilla-build\"
Visual C++ 10 Express directory: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
Visual C++ 11 directory: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\
Visual C++ 11 Express directory: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\
Windows SDK directory: C:\Program Files\Microsoft SDKs\Windows\v7.1\
Windows SDK version: 7.1
Using VC 2011 built-in SDK
Mozilla build environment: MSVC version 11.

Now, you'll need to fetch mozilla-central:

cd /c/dev
hg clone https://hg.mozilla.org/mozilla-central

Revision Source

<p>Windows 8 will eventually support compiling mozilla-central and related repositories and products. This page documents the steps to get a working Windows 8 development environment.</p>
<h2>Installing Windows 8</h2>
<p>The Windows 8 Developer Preview can be obtained from <a class=" external" href="http://msdn.microsoft.com/en-us/windows/home/" rel="freelink">http://msdn.microsoft.com/en-us/windows/home/</a>.</p>
<p>If you want to run Windows 8 on Virtualbox, see <a class=" external" href="http://www.groovypost.com/howto/install-windows-8-vm-virtualbox/" rel="freelink">http://www.groovypost.com/howto/inst...vm-virtualbox/</a>.</p>
<p>Installing Windows 8 is pretty straightforward for an OS install. These instructions assume you know how to do that.</p>
<p>As for hardware resources of the VM or Virtualbox, you should be able to fit in the base OS, all the dependencies, source and build in a 30GB partition. For memory, 2GB should be considered the minimum. As always, give it as much as you can.</p>
<h2>Install Developer Tools</h2>
<p>As with the existing Windows 7 development steps, you'll need to install a number of prerequisites.</p>
<h3>Visual Studio 2011</h3>
<p>The Visual Studio 2011 Developer Preview can be downloaded from <a class=" link-https" href="https://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=27543" rel="freelink">https://www.microsoft.com/download/e...ng=en&amp;id=27543</a>. The download there is just a simple installer which will download and install the real components. When you install VS2011, have something else to do because it takes a long time.</p>
<h3>DirectX SDK</h3>
<p>Optionally download and install the DirectX SDK from <a class=" external" href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=6812" rel="freelink">http://www.microsoft.com/download/en...ang=en&amp;id=6812</a>.</p>
<p>If you don't install the DirectX SDK, add the following to your .mozconfig:</p>
<p style="margin-left: 40px;"><code>ac_add_options --disable-angle</code></p>
<h3>Windows SDK</h3>
<p>The Windows SDK is a little tricky for Windows 8. Currently, the Windows 8 SDK is only available to MSDN subscribers. If you have access, you can grab it from MSDN under the filename <span id="ctl00_mainContentContainer_ctl03_BPProductDetailsGrid2__DetailsContent_d24aac62-e83f-4690-b40a-5f1f8f2c5823"><span class="FilesDetailsInfoText">en_windows_developer_preview_wdk_x86_x64_741966.zip. You will likely find it under the <em>Windows Developer Preview</em> section listed as </span></span><span><em>Windows Developer Preview WDK (x86 and x64)</em>.</span></p>
<p>Theoretically, you can install the Windows 7 (or 7.1) SDK as a substitute. But, the Windows SDK isn't technically required (the files in Visual Studio 2011 will suffice). If you want to install this SDK, the download you want is at <a class=" external" href="http://www.microsoft.com/download/en/details.aspx?id=8279" rel="freelink">http://www.microsoft.com/download/en...s.aspx?id=8279</a>. Like Visual Studio, this is a web downloader, so the bulk of the downloading is performed while running the installer. The default install options should be sufficient.</p>
<h3>mozilla-build Bundle</h3>
<p>mozilla-build (the package that provides all the utilities for building on Windows) does not yet have a shipped version that supports Windows 8. So, you'll need to obtain the repository. Download <a class=" link-https" href="https://hg.mozilla.org/mozilla-build/archive/tip.zip" rel="freelink">https://hg.mozilla.org/mozilla-build/archive/tip.zip</a> and uncompress to somewhere (like c:\src\mozilla-build).</p>
<p>Until <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=686837" title="https://bugzilla.mozilla.org/show_bug.cgi?id=686837">bug 686837</a> lands, you'll need to apply the patch(es) in that bug manually over the contents of mozilla-build.</p>
<h2>Compiling</h2>
<p>Start up your compilation environment by running <code>start-msvc11.bat</code> from mozilla-build. You should see output resembling the following:</p>
<blockquote> <p><code>"Mozilla tools directory: C:\mozilla-build\"<br> Visual C++ 10 Express directory: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\<br> Visual C++ 11 directory: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\<br> Visual C++ 11 Express directory: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\<br> Windows SDK directory: C:\Program Files\Microsoft SDKs\Windows\v7.1\<br> Windows SDK version: 7.1<br> Using VC 2011 built-in SDK<br> Mozilla build environment: MSVC version 11.</code></p>
</blockquote>
<p>Now, you'll need to fetch mozilla-central:</p>
<blockquote> <p><code>cd /c/dev<br> hg clone <a class=" link-https" href="https://hg.mozilla.org/mozilla-central" rel="freelink">https://hg.mozilla.org/mozilla-central</a></code></p>
</blockquote>
Revert to this revision