File: README-emscripten.txt

package info (click to toggle)
libsdl2-image 2.0.5+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,048 kB
  • sloc: ansic: 13,795; sh: 10,561; makefile: 91
file content (20 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Building SDL2_image
-------------------

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:

Step 0 - get emscripten

Step 1 - get sdl2-emscripten
 * 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

Step 2 - get sdl_image
 * emconfigure ./configure  --disable-sdltest --with-sdl-prefix=/path/to/sdl --prefix=/path/to/install
 * (where /path/to/sdl is the path you passed as --prefix to SDL2 configure)
 * emmake make
 * make install