Closed TheAwesome98-Real closed 8 months ago
cc @TheBrokenRail
I have never tested the wasm build script on Linux. Maybe I should get a linux machine soon..
What command did you run, and what's the full build log?
i simply just ran ./build-wasm.sh
, and the build log is here (from ./build-wasm.sh > build.log 2>&1
):
build.log
any update on this?
Could you try again with the latest patch? The issue should be fixed now.
it compiles but does not seem to run. should i open a new issue for that?
How are you running it? Make sure you're using a web server.
How are you running it? Make sure you're using a web server.
i'm running it on localhost, with https because of SharedArrayBuffer
.
the following warnings appear:
no errors appear.
Nothing shows up? Did you put the assets in $PROJECTROOT/game
?
oh, i thought you were supposed to just copy them into the folder
i'll try putting them in there tomorrow
Yes, copy them over.
that fixed it! note, for anyone who has the same problem building - you need to erase the build folder, otherwise the build script will assume it has nothing to do since no source code files were changed
i'm trying to build the webassembly version of this program on linux. i can't, because it says that SDL2/SDL.h is missing, however this is located in /usr/include. i vaguely remember having to download an emscripten-specific version of sdl for one of my own projects when i used to program in c++, but i would imagine this would have been fetched by the build-wasm script. i've also followed every other instruction, that being, copying the sounds and the assets folder, and installing the required build dependencies. i am able to complete a linux build but unable to test it as my system has some kind of problem with openal that i don't yet know how to fix. any help would be appreciated.