-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get past error when compiling for web #508
Comments
After some looking I found out about some extra dependencies and certain steps for windows users, so I'll try that in a few hours when I get home from school, then I'll update this post accordingly |
I eventually gave up on using mingw64 and tried wsl, but when compiling, this message is repeated a lot: |
Okay honestly guys I just can't figure it out can you please just give me a step-by-step tutorial to compile it with |
Yet another update: After even more digging around, I found out that it may help to edit the Makefile and change |
Changing the |
I just tried to compile it with google colab and got the exact same result as previous attempts, telling me to replace |
Using google colab as if it were the same as ubuntu (because it is) running |
I don't know anything about emscripten, but you're only posting the final error and a bunch of warnings. Scroll up and see if there's anything marked with |
+1
|
Here's the entire output of running `make: Entering directory '/content/sm64ex/tools' define BE_TO_HOST16(x) BSWAP16(x)
include/macros.h:62:39: note: expanded from macro 'BSWAP16' define BE_TO_HOST16(x) BSWAP16(x)
include/macros.h:62:39: note: expanded from macro 'BSWAP16' define BE_TO_HOST16(x) BSWAP16(x)
include/macros.h:62:39: note: expanded from macro 'BSWAP16' define BE_TO_HOST16(x) BSWAP16(x)
include/macros.h:62:39: note: expanded from macro 'BSWAP16' In file included from text/define_text.inc.c:53:0: In file included from text/define_text.inc.c:59:0: emcc -c -O2 -g4 --source-map-base http://localhost:8080/ -I include -I build/us_web -I build/us_web/include -I src -I . -DRAPI_GL=1 -DWAPI_SDL2=1 -DAAPI_SDL2=1 -DCAPI_SDL2=1 -DHAVE_SDL2=1 -I/usr/include/SDL2 -D_REENTRANT -DVERSION_US -D_LANGUAGE_C -DNIGHTLY -DGIT_HASH=""03f0199"" -DNON_MATCHING -DAVOID_UB -DTARGET_WEB -DUSE_GLES -DF3DEX_GBI_2E -fno-strict-aliasing -fwrapv -s USE_SDL=2 -DTEXTURE_FIX -DEXT_OPTIONS_MENU -o build/us_web/src/pc/ultra_reimplementation.o src/pc/ultra_reimplementation.c |
Worked for me on an older version of Emscripten, can't remember which version it was though |
I'm trying to compile a version for my browser using the tags
TEXTURE_FIX=1
TARGET_WEB=1
, but I keep on and on getting this error:/bin/sh: line 1: cpp: command not found make: *** [Makefile.split:151: build/us_web/level_rules.mk] Error 127
I've been looking around and it seems that most people just forget to do the
source ./emsdk_env.sh
oremsdk_env.bat
command, but that's not my issue. If I doecho $PATH
, I get/home/James Williamson/sm64ex/emsdk:/home/James Williamson/sm64ex/emsdk/upstream/emscripten:/home/James Williamson/sm64ex/emsdk/node/14.18.2_64bit/bin:/mingw64/bi/n/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
The entire output I get when I run
make TEXTURE_FIX=1 TARGET_WEB=1 -j4
is:make: Entering directory '/home/James Williamson/sm64ex/tools' make: Nothing to be done for 'default'. make: Leaving directory '/home/James Williamson/sm64ex/tools' make: sdl2-config: No such file or directory make: sdl2-config: No such file or directory cpp -P -DVERSION_US -D_LANGUAGE_C -DNIGHTLY -DGIT_HASH="\"db9a634\"" -DNON_MATCHING -DAVOID_UB -DTARGET_WEB -DUSE_GLES -I . -o build/us_web/level_rules.mk levels/level_rules.mk /bin/sh: line 1: cpp: command not found make: *** [Makefile.split:151: build/us_web/level_rules.mk] Error 127
Please somebody help me this is going to drive me insane
The text was updated successfully, but these errors were encountered: