Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update emscripten building instructions
- Reccomend Emscripten ports - Update repo - More details about prefix
- Loading branch information
1 parent
a8c15fd
commit 418665a
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,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/gsathya/SDL-emscripten.git | ||
* follow the build instructions in SDL-emscripten/README-emscripten.txt | ||
* 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 | ||
|