Last active
April 24, 2017 21:03
-
-
Save drola/cfab87b542140da550fd3c6e4f2b87b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install git cmake build-essential python2.7 nodejs default-jre | |
sudo apt-get install git cmake build-essential python2.7 nodejs default-jre | |
wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | |
tar -zxvf emsdk-portable.tar.gz | |
cd ./emsdk-portable | |
./emsdk update | |
./emsdk install sdk-incoming-64bit #If you are getting "collect2: error: ld returned 1 exit status" error, try running ./emsdk install -j1 sdk-incoming-64bit | |
./emsdk activate sdk-incoming-64bit | |
cd emcscripten/incoming | |
./embuilder.py build binaryen | |
cd ../.. | |
source ./emsdk_env.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment