1Building SDL2_image 2------------------- 3 4The easiest way to use SDL2_image with Emscripten is to use Emscripten ports (https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports) (-s USE_SDL_IMAGE=2). 5 6If you want to build it yourself instead you can use these instructions: 7 8Step 0 - get emscripten 9 10Step 1 - get sdl2-emscripten 11 * clone https://github.com/emscripten-ports/SDL2.git 12 * follow the build instructions in SDL2/docs/README-emscripten.md (make sure to pass a --prefix to configure) 13 * make install 14 15Step 2 - get sdl_image 16 * emconfigure ./configure --disable-sdltest --with-sdl-prefix=/path/to/sdl --prefix=/path/to/install 17 * (where /path/to/sdl is the path you passed as --prefix to SDL2 configure) 18 * emmake make 19 * make install 20 21