From 9b6f159c3dae3a00bf3d9175f4d4b2575d88a4cd Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 26 Jun 2015 20:11:41 +0200 Subject: [PATCH] Emscripten: Corrected build instructions in documentation. And fixed a typo. --- docs/README-emscripten.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/README-emscripten.md b/docs/README-emscripten.md index ca9b35b10f874..62012db72cce6 100644 --- a/docs/README-emscripten.md +++ b/docs/README-emscripten.md @@ -3,13 +3,17 @@ Emscripten Build: - $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2" + $ mkdir build + $ cd build + $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2" $ emmake make Or with cmake: - $ emconfigure cmake .. - $ make + $ mkdir build + $ cd build + $ emcmake cmake .. + $ emmake make To build one of the tests: @@ -22,7 +26,7 @@ tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere): -SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/) +SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/): $ EMCONFIGURE_JS=1 emconfigure ../configure build as usual...