Instale o Git
Instale o Python
Execute esses comandos no Terminal
# Get the emsdk repo # Enter that directory |
Após o Download do Repositório, execute esses comandos no Terminal
# Fetch the latest version of the emsdk (not needed the first time you clone) # Download and install the latest SDK tools. # Make the "latest" SDK "active" for the current user. (writes .emscripten file) # Activate PATH and other environment variables in the current terminal |
| Arquivo: xpath.bat |
| set emxx=C:\emsdk;C:\emsdk\node\22.16.0_64bit\bin;C:\emsdk\upstream\emscripten set path=%emxx%;%path% |
| xpath |
Código Fonte
| Arquivo: hello_world.c |
/* #include <stdio.h> int main() { |
| Comando: |
| ./emcc hello_world.c -o hello.html |
Resultado: Observação: Tem que rodar no Servidor |
| [Clique Aqui] |