-
Notifications
You must be signed in to change notification settings - Fork 3.4k
gl4es no longer works with Emscripten #15674
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
Comments
As you have noticed both of those files are part of Can you include the full emcc command that is failing along with the full |
Oh I see you already tracked down the culprit PR: #13524. I think I see what is happening.. you are putting @kripken might have some ideas on how to fix this. One option would be to explictly includes |
I'll give it a try and report back, thanks. |
Hmm.. I think maybe one solution is to split |
IIUC, the issue here is that this project does not link in If so then I think I verified that that fixes this testcase with extern "C" int emscripten_GetProcAddress(const char *name);
int main() {
return emscripten_GetProcAddress("foo");
} |
Apologies for the breaking change here, btw. I'll add a changelog note for that release. |
Its not clear if this issue is related to It could be that this issue is little more complicated. It could involve the presence of a custom Its not clear to how this ever worked though because wasn't |
I think this used to work because that function was in a JS library. That meant it could always be linked in regardless of what libraries one specified at the commandline. (I guess we do conditionally include certain JS files, so maybe not always...) That testcase (with |
But hasn't (I looks like |
Here is my theory. The issue is caused by I seem to remember recently changing from |
@sbc100 I think this is exactly what's happening. For the record, here is the full output of the link step.
I made the following change and the compilation succeeded. -LDFLAGS := -L../gl4es/lib -lGL
+LDFLAGS := ../gl4es/lib/libGL.a I can't really wrap my head around why I don't need the -lGL for the system library, but it must have been linked in automatically? Anyway, the resulting program runs fine, so I believe the fix is entirely sufficient. Thanks for the quick response! |
I've been maintaining a Neverball build here: https://neverball.github.io/
Hadn't compiled in a while. It worked great last I tried, which was around 2.0.16. Getting linker errors about missing eglGetProcAddress (via SDL2) and emscripten_GetProcAddress (via gl4es):
Seems to me that compilation with gl4es is broken since, presumably, #13524.
gl4es provides its own GL library, but requires emscripten_GetProcAddress to exist. Unless I'm misreading, emscripten_GetProcAddress is only included when linking with the default GL library.
If I am misreading, how do I compile with gl4es now? Or, I guess, what's the proper fix that should be implemented and to which part?
The text was updated successfully, but these errors were encountered: