Created
June 9, 2015 05:26
-
-
Save pingyen/51469d9965427dbac8bd to your computer and use it in GitHub Desktop.
Emscripten Installation Guide
This file contains 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
$ sudo apt-get install python-software-properties | |
$ sudo apt-add-repository ppa:chris-lea/node.js | |
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
$ sudo apt-get update | |
$ sudo apt-get install nodejs default-jre | |
$ sudo apt-get install gcc-4.8 g++-4.8 | |
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 | |
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 | |
$ wget http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz | |
$ tar zxvf cmake-3.2.3-Linux-x86_64.tar.gz | |
$ sudo ln -sf /path/to/cmake-3.2.3-Linux-x86_64/bin/cmake /usr/bin/cmake | |
$ wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | |
$ tar zxvf emsdk-portable.tar.gz | |
$ cd /path/to/emsdk-portable | |
$ ./emsdk update | |
$ ./emsdk install latest | |
$ ./emsdk activate latest | |
$ source ./emsdk_env.sh | |
$ emcc -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment