Files
projectm/src/projectM-emscripten
Benedikt Rötsch d9fb429abd GLSL and emscripten - JavaScript and WebGL support (#92)
* add glm lib in vendor folder

* fix makefile

* add more help and context to emscripten readme

* add correct output parameter to emcc

* add how to restart the process to the readme

* simplify emscripten compilation

* apply patch

* fix blur shaders to work with WebGL
2019-05-11 19:07:49 +03:00
..

Running on the web.

## Prepare
* Activate the emsdk (https://github.com/juj/emsdk#installation-instructions)
* Make sure you are in the root directory of this project
* On fresh repositories: `./autogen.sh`

## Compile
* `emconfigure ./configure --enable-emscripten`
* `emmake make`

## Create wasm & html files
* `cd src/projectM-emscripten`
* `make run`

## Troubleshooting

### General

Want to restart the process after pulling or changing config?
* `rm src/projectM-emscripten/projectW*`
* restart with emconfigure or emmake

### OS X troubleshooting:

#### `./autogen.sh: line 3: autoreconf: command not found`
fix via `brew install automake`