- Hands-On Game Development with WebAssembly
- Rick Battagline
- 352字
- 2021-06-24 13:41:01
Installing Emscripten on Windows
I am going to keep this section brief because these instructions are subject to change. You can supplement these instructions with the official Emscripten download and install instructions found on the Emscripten website: https://emscripten.org/docs/getting_started/downloads.html.
We will need to download and build Emscripten from the emsdk source files on GitHub. First, we will walk through what to do on Windows.
Python 2.7.12 or higher is a prerequisite. If you do not have a version of Python higher than 2.7.12 installed, you will need to get the windows installer from python.org and install that first: https://www.python.org/downloads/windows/.
If you have Git installed already, cloning the repository is relatively simple:
- Run the following command to clone the repository:
git clone https://github.com/emscripten-core/emsdk.git
- Wherever you run this command, it will create an emsdk directory. Enter that directory using the following:
cd emsdk
You may not have Git installed, in which case, the following steps will bring you up to speed:
- Go to the following URL in a web browser: https://github.com/emscripten-core/emsdk.
- You will see a green button on the right-hand side that says Clone or download. Download the ZIP file:

- Unzip the downloaded file to the c:\emsdk directory.
- Open up a Windows Command Prompt by typing cmd into the start menu and pressing Enter.
- From there, you can change to the c:\emsdk\emsdk-master directory by typing the following:
cd \emsdk\emsdk-master
At this point, it does not matter whether you had Git installed or not. Let's move forward:
- Install emsdk from the source code running the following command:
emsdk install latest
- Then activate the latest emsdk:
emsdk activate latest
- Finally, set up our path and environment variables:
emsdk_env.bat
- 24小時(shí)學(xué)會(huì)電腦組裝與維護(hù)
- 深入理解Spring Cloud與實(shí)戰(zhàn)
- Learning Cocos2d-x Game Development
- 數(shù)字道路技術(shù)架構(gòu)與建設(shè)指南
- 精選單片機(jī)設(shè)計(jì)與制作30例(第2版)
- 基于ARM的嵌入式系統(tǒng)和物聯(lián)網(wǎng)開發(fā)
- 深入淺出SSD:固態(tài)存儲(chǔ)核心技術(shù)、原理與實(shí)戰(zhàn)(第2版)
- 嵌入式系統(tǒng)中的模擬電路設(shè)計(jì)
- Arduino BLINK Blueprints
- Blender Quick Start Guide
- “硬”核:硬件產(chǎn)品成功密碼
- 筆記本電腦芯片級(jí)維修從入門到精通(圖解版)
- 單片微機(jī)原理及應(yīng)用
- STM32自學(xué)筆記
- 單片機(jī)項(xiàng)目設(shè)計(jì)教程