emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

SDK does not support Windows XP

Open MarkCallow opened this issue 13 years ago • 8 comments

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.

MarkCallow avatar Nov 08 '13 08:11 MarkCallow

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

juj avatar Nov 08 '13 09:11 juj

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.

MarkCallow avatar Nov 08 '13 09:11 MarkCallow

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?

MarkCallow avatar Nov 08 '13 09:11 MarkCallow

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?

juj avatar Nov 08 '13 09:11 juj

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?

juj avatar Nov 08 '13 09:11 juj

Yes. The (x86) is the issue. You do need to check both paths.

MarkCallow avatar Nov 08 '13 09:11 MarkCallow

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 sys.exit(main()) File "C:\Program Files\Emscripten\emsdk", line 814, in main installed = '\tINSTALLED' if tool.is_installed() else '' File "C:\Program Files\Emscripten\emsdk", line 485, in is_installed content_exists = os.path.exists(self.installation_path()) and (os.path.isfil e(self.installation_path()) or num_files_in_directory(self.installation_path())

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)'

MarkCallow avatar Nov 11 '13 08:11 MarkCallow

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.

jbouny avatar Nov 25 '13 22:11 jbouny