How to compile SDL3 to WebAssembly with Emscripten?
If understand the instuctions correctly, I need to build the SDL library with emsdk emcmake cmake -S vendored/SDL -B build -G "Visual Studio 18 2026" ran successfully but emcmake cmake --build build fails with emcmake: no compatible cmake generator found; Please install ninja or mingw32-make, or specify a generator explicitly using -G and emcmake cmake --build build -G "Visual Studio 18 2026" fails with Unknown argument -G I also tried compiling a simple SDL3 Hello, World! program using emcc directly - python ../emsdk/upstream/emscripten/emcc.py -O3 -s WASM=1 -s EXPORTED_RUNTIME_METHODS='\["cw
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.