Browse Source

Merge pull request #178 from vnen/windows-web-compile

Add information about building for the web on Windows
Rémi Verschelde 9 years ago
parent
commit
dbf69c989e
1 changed files with 9 additions and 1 deletions
  1. 9 1
      reference/compiling_for_web.rst

+ 9 - 1
reference/compiling_for_web.rst

@@ -10,7 +10,8 @@ Requirements
 
 To compile export templates for the Web, the following is required:
 
--  `Emscripten SDK <http://emscripten.org/>`__
+-  `Emscripten SDK <http://emscripten.org/>`__ (Install in a path without
+   spaces, i.e. not on "Program Files")
 -  `Python 2.7+ <https://www.python.org/>`__ (3.0 is
    untested as of now)
 -  `SCons <http://www.scons.org>`__ build system
@@ -23,6 +24,13 @@ installation directory of Emscripten::
 
     export EMSCRIPTEN_ROOT=~/emsdk/emscripten/master
 
+If you are on Windows, start a regular prompt or the Emscripten Command Prompt.
+Do **not** use the Developer Command Prompt nor any of the ones that come with
+Visual Studio. You can set the environment variable in the system settings or
+in the prompt itself::
+
+    set EMSCRIPTEN_ROOT=C:\emsdk\emscripten\master
+
 Now go to the root directory of the engine source code and instruct SCons to
 compile for JavaScript. Specify ``target`` as either ``release`` for a release
 build or ``release_debug`` for a debug build::