Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 786 Bytes

README-emscripten.txt

File metadata and controls

20 lines (14 loc) · 786 Bytes
 
1
2
3
Building SDL2_image
-------------------
Jun 10, 2019
Jun 10, 2019
4
5
6
7
The 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).
If you want to build it yourself instead you can use these instructions:
8
9
10
Step 0 - get emscripten
Step 1 - get sdl2-emscripten
Jun 10, 2019
Jun 10, 2019
11
12
13
* clone https://github.com/emscripten-ports/SDL2.git
* follow the build instructions in SDL2/docs/README-emscripten.md (make sure to pass a --prefix to configure)
* make install
14
15
16
Step 2 - get sdl_image
* emconfigure ./configure --disable-sdltest --with-sdl-prefix=/path/to/sdl --prefix=/path/to/install
Jun 10, 2019
Jun 10, 2019
17
* (where /path/to/sdl is the path you passed as --prefix to SDL2 configure)
18
19
20
* emmake make
* make install