ReMinecraftPE / mcpe

ReMinecraftPE - A custom experience based on Minecraft PE as of 2011.
https://discord.gg/UKGhuKNmFu
Other
308 stars 47 forks source link

unable to build the webassembly version on linux #81

Closed TheAwesome98-Real closed 8 months ago

TheAwesome98-Real commented 9 months ago

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.

iProgramMC commented 9 months ago

cc @TheBrokenRail

I have never tested the wasm build script on Linux. Maybe I should get a linux machine soon..

TheBrokenRail commented 9 months ago

What command did you run, and what's the full build log?

TheAwesome98-Real commented 9 months ago

i simply just ran ./build-wasm.sh, and the build log is here (from ./build-wasm.sh > build.log 2>&1): build.log

TheAwesome98-Real commented 8 months ago

any update on this?

iProgramMC commented 8 months ago

Could you try again with the latest patch? The issue should be fixed now.

TheAwesome98-Real commented 8 months ago

it compiles but does not seem to run. should i open a new issue for that?

TheBrokenRail commented 8 months ago

How are you running it? Make sure you're using a web server.

TheAwesome98-Real commented 8 months ago

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: image no errors appear.

iProgramMC commented 8 months ago

Nothing shows up? Did you put the assets in $PROJECTROOT/game?

TheAwesome98-Real commented 8 months ago

oh, i thought you were supposed to just copy them into the folder

i'll try putting them in there tomorrow

iProgramMC commented 8 months ago

Yes, copy them over.

TheAwesome98-Real commented 8 months ago

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