emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.55k stars 3.27k forks source link

installing on windows does not work #13066

Open geogiam-net opened 3 years ago

geogiam-net commented 3 years ago

Hello,

I am new to emscripten, I installed latest git and python-3.7.4 in windows 7,

I follow your instruccions at https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install but they wont work.

The commands throw syntax errors!

C:...\Python37\python.exe C:...\emsdk\emsdk install latest File "C:\Users\urza\Desktop\wasm-emscripten\emsdk\emsdk", line 10 if [ -z "$EMSDK_PYTHON" ]; then ^ SyntaxError: invalid syntax

C:...\Python37\python.exe C:...\emsdk\emsdk activate latest File "C:\Users\urza\Desktop\wasm-emscripten\emsdk\emsdk", line 10 if [ -z "$EMSDK_PYTHON" ]; then ^ SyntaxError: invalid syntax

C:...\Python\Python37\python.exe C:...\emsdk\emsdk_env.bat File "C:\Users\urza\Desktop\wasm-emscripten\emsdk\emsdk_env.bat", line 1 @call "%~dp0emsdk" construct_env

sbc100 commented 3 years ago

The python script is called emsdk.py. emsdk and emsdk.bat are launcher scripts in for unix and windows respectively.

So if you want to specify the version of python explicitly on the command line you would run C:...\Python37\python.exe C:...\emsdk\emsdk.py

Ideally you would let the .bat file find python for you by just running C:...\emsdk\emsdk (or explictly C:...\emsdk\emsdk.bat)

geogiam-net commented 3 years ago

Thank you for such fast reply, I tried the bat before and didn't work, but now I got and idea and that is how it works.

emsdk.bat install latest

emsdk.bat activate latest

emsdk_env.bat

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.