SDK does not support Windows XP
The documentation is silent about Windows versions so I assumed there would be no problem. However after downloading & running the installer the only tools shown by emsdk list were emscripten-master and empscripten-incoming. sdk update resulted in "Unsupported OS."
At the very least update the SDK documentation.
There is no reason that Windows XP would not be supported. The OS detection seems to be failing there. Can you check if the WINDOWS variable ends up being true or false on your system? See here https://github.com/juj/emsdk/blob/master/emsdk#L22
My bad! I was running emsdk from the cygwin prompt so WINDOWS is false and os.name is "posix".
If I type ./emsdk.bat instead of ./emsdk I can install. However I have another problem. It is telling me that VS2010 was not found but I do have it installed on this system and in the standard place. I'll have to investigate that further.
The standard VS100COMNTOOLS is even set in the environment. I don't know why it says "VS2010 not found!"
VS100COMNTOOLS=c:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
How can I manually convince VS2010 is present?
emsdk looks for MSBuild, the Visual Studio location is not actually important. See this directory: https://github.com/juj/emsdk/blob/master/emsdk#L389 . What is the location MSBuild is in your system? I don't think the user can configure that directory during installation, which is why I hardcoded it. Do you think there would be a better way to detect?
Oh wait, is that a 32-bit OS where Program Files (x86) doesn't even exist and it's just Program Files for everything? In that case I think we'll need to check for both Program Files paths. Does removing (x86) there work?
Yes. The (x86) is the issue. You do need to check both paths.
The version of emsdk with this fix is crashing on Windows XP with the following error. It works on Windows 7.
C:\Program Files\Emscripten>emsdk.bat list
The following individual tools exist:
* clang-3.2-32bit INSTALLED
clang-3.2-64bit
Traceback (most recent call last):
File "C:\Program Files\Emscripten\emsdk", line 900, in
File "C:\Program Files\Emscripten\emsdk", line 426, in installation_path pth = self.windows_install_path.replace("%MSBuildPlatformsDir%", find_msbuil d_dir()) File "C:\Program Files\Emscripten\emsdk", line 393, in find_msbuild_dir program_files_x86 = os.environ['ProgramFiles(x86)'] File "C:\Program Files\Emscripten\python\2.7.5.1_32bit\lib\os.py", line 423, i n getitem return self.data[key.upper()] KeyError: 'PROGRAMFILES(X86)'
Following same errors (but with Windows Vista 32bits), I can propose you a temporary fix.
Check the file 'C:\Program Files\Emscripten\emsdk' line 394 (or line 393 for your version, last error in this file).
I replace 'program_files_x86 = os.environ['ProgramFiles(x86)']' by 'program_files_x86 = None' (use of default value) and it works for me.