I use this manual to build:
- Part 1: GitHub - Ravbug/sdl3-sample: Minimal HowTo for building and using SDL3 on a variety of platforms, including mobile and web
- Part 2: sdl3-sample/config/README.md at main · Ravbug/sdl3-sample · GitHub
Note. This manual works for Android. Except “Ninja” app that must be installed (and added to Path, I used one from Qt: C:\Qt\Tools\Ninja
) and manually changing of CMake version in the build.gradle
script.
I installed the latest emsdk
for the current time:
"emsdk.bat" install latest
"emsdk.bat" activate latest
I completed this task:
- On Windows hosts, run
config-web-win.bat
via theemcmdprompt.bat
cmd in the emsdk root directory
This is the result:
-- SDL_X11_XSHAPE (Wanted: ON): OFF
-- SDL_XINPUT (Wanted: OFF): OFF
--
-- Build Shared Library: OFF
-- Build Static Library: ON
-- Build Static Library with Position Independent Code: OFF
--
-- If something was not detected, although the libraries
-- were installed, then make sure you have set the
-- CMAKE_C_FLAGS and CMAKE_PREFIX_PATH CMake variables correctly.
--
-- Configuring done (691.6s)
-- Generating done (0.3s)
-- Build files have been written to: E:/_Projects/SDL3/sdl3-sample/build/web
The next task is:
- After the build completes, use python3 -m http.server in the build directory to make the page accessible.
But the build
directory looks like this:
This is the /build/web
directory:
I have the http-server
package to run the result but I don’t see the index.html. What to do next?