Article metadata
- Copyright CC BY-SA 4.0. See licensing for additional details
- Author
- Created 2015-03-06
- Last updated: 2015-03-06
- Changes
- 2015-03-06: Initial creation
Configure emscripten
Configure emscripten and dependencies on Gentoo
Emerge nodejs
emerge --ask net-libs/nodejs
Install emscripten sdk1
- Download latest "Portable Emscripten SDK for Linux and OS X"
Expand, update, activate and configure environment
tar -xzvf Downloads/emsdk-portable.tar.gz cd emsdk_portable/ ./emsdk update ./emsdk install latest ./emsdk activate latest source ./emsdk_env.sh
Verify it works
cd emscripten/master emcc tests/hello_world.c node a.out.js emcc tests/hello_world.c -o hello.html # Test in browser emcc tests/hello_world_sdl.cpp -o hello.html # Test DSL in browser python tests/runner.py
References
Emscripten Contributors. “Getting Started — Emscripten 1.29.10 Documentation.” Accessed March 7, 2015. http://kripken.github.io/emscripten-site/docs/getting_started/index.html.
Emscripten Contributors, “Getting Started — Emscripten 1.29.10 Documentation.” ↩