-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wasm libzim package should include precompiled library. #552
Comments
Do you mean the way the dependencies are linked in https://github.com/openzim/javascript-libzim/blob/master/Makefile#L42 to make |
The pointed line say to make that it need to build other dependencies before building
This issue is about either make |
OK, thanks @mgautierfr. That sounds good. When you have a |
@mgautierfr I compiled an Emscripten WASM from the
The good news is that this appears to compile the WASM and wrapper without complaining (they are both produced, and no error is shown). The not-so-good news is that this WASM is producing fatal exceptions when used within the test implementation on I'm afraid I haven't got much of a clue about how to fix this. I suspect that the dependencies are not being compiled with the right switches or configuration overrides for Emscripten, but I really don't know much more about all this than what appears in the Makefile on openzim/javascript-libzim. I sure hope you have more of a clue than I do... But it seems possible that the issue is in the precompiled binaries. What Emscripten configuration are you doing to compile these binaries? I've had to learn a lot just to get to the stage of being able to test-compile this, but I really don't think I can fix this by myself. I can commit the built files and modified demo to a branch on the repo if that would be useful. Note I built this using the branch in my workflow PR: openzim/javascript-libzim#14, so the compiled WASM and wrapper are now named Feel free to move this comment to a new issue if you prefer, or to re-open this one if you agree that the issue is with the binaries and not with the binding. |
@Jaifroid I've open the issue openzim/libzim#751 for this |
Until now, precompiled libzim packages include
libzim.so
.This
libzim.so
include its dependencies as it is linked statically with them.But on wasm it seems it is not the case. So we have to:
libzim.a
could be linked statically with dependencies (if possible) or.a
in the packageThe text was updated successfully, but these errors were encountered: