FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Web Client Build Fix & Instructions Changes by BeastFable · Pull Request #249 · 2003scape/rsc-c · GitHub

Web Client Build Fix & Instructions Changes - #249

Open
BeastFable wants to merge 9 commits into
2003scape:masterfrom
BeastFable:iOS-And-Windows-Changes
Open

Web Client Build Fix & Instructions Changes#249
BeastFable wants to merge 9 commits into
2003scape:masterfrom
BeastFable:iOS-And-Windows-Changes

Conversation

BeastFable commented Feb 1, 2026
edited
Loading

Copy link
Copy Markdown

What's Changed

  • Fixed call to undeclared function 'surface_gl_new' error when running Makefile.emscripten
  • Fixed MIN_FIREFOX_VERSION older than 68 is not supported error when running Makefile.emscripten by updating the version to 68
  • Clarified testing and hosting instructions in the build (web) section of the readme (note: spacing and formatting changes were not made by me, but by Prettier)
  • Added mudclient.wasm.js to .gitignore as it probably isn't supposed to be versioned

Fixes #248

Copy link
Copy Markdown
Collaborator

This looks wrong to me. surface-gl.c will always be compiled due to wildcard usage in the Makefile.

BeastFable commented Feb 2, 2026
edited
Loading

Copy link
Copy Markdown
Author

This looks wrong to me. surface-gl.c will always be compiled due to wildcard usage in the Makefile.

If I run Makefile.emscripten without the import I added, I see this (I added a log message to find out the value of RENDER_GL on my side):

paulaldrich@Pauls-MacBook-Pro rsc-c % make -f Makefile.emscripten
This is an informational message.
RENDER_GL is 1.
emcc -fwrapv -std=gnu99 -s USE_SDL=2 -DSDL2 -I ./cglm/include -DRENDER_GL -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["png"]' -s -O3 -ffast-math -flto -s DISABLE_EXCEPTION_THROWING=1   -c -o src/surface.o src/surface.c
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
src/surface.c:145:5: error: call to undeclared function 'surface_gl_new'; ISO
      C99 and later do not support implicit function declarations
      [-Wimplicit-function-declaration]
  145 |     surface_gl_new(surface, width, height, limit, mud);
      |     ^
1 error generated.
make: *** [src/surface.o] Error 1

So the import seems to be necessary? (see below update)

… build, added missing definition of surface_gl_new in surface.h which fixes the 'call to undeclared function surface_gl_new' issue

BeastFable commented Feb 3, 2026
edited
Loading

Copy link
Copy Markdown
Author

OK, I fixed a couple things. I removed the #include because it was causing symbols to be defined twice when running make. I then added surface_gl_new to the surface.h file which fixes the call to undeclared function error.

Let me know if I should revert the change to mudclient.wasm.js. If so, we may want to consider adding it to .gitignore.

BeastFable changed the title iOS and Windows changes Web Client Build Fix & Instructions Change Feb 12, 2026
BeastFable changed the title Web Client Build Fix & Instructions Change Web Client Build Fix & Instructions Changes Feb 12, 2026
lesleyrs mentioned this pull request Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Multiple issues using Emscripten to set up web client

3 participants


Back | FazBrowse Home | New Git URL