I have been able to get it to work compiling in using the following command:
emcc -g4 debug.cpp -o debug.html --source-map-base http://localhost:8080/ --preload-file sprites -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS=["png"] -s MAIN_MODULE=1 -s WASM=1 I am confused about several of these. I'm still trying to figure out why I need -s WASM=1 since that is the default behavior. I also don't understand why I need -s MAIN_MODULE=1 Does anyone know why I need those two flags? Thanks -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
