-
Notifications
You must be signed in to change notification settings - Fork 3
Error executing tsembind #5
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
Thanks for submitting the issue! What linker flags are you using? I'd be especially curious about |
Actually none of those. Here is my build script:
|
Hmm it looks like I may be doing some generic object reconstruction which is losing type info. I suspect that Hopefully this is a simple fix. |
What's the output of |
output.txt |
It looks like you are using Emscripten 1.39. Does the issue still occur if you update Emscripten? |
Ok, let me update to latest and try it out again. |
It worked! The file looks neat! |
A suggestion - could you add an example usage on your github page? Emscripten expects us to create a Module object with onRuntimeInitialized function, so it may be useful to have a quick reference on how to adapt to it. |
|
#6 should solve this. I'm pretty busy at the moment but always open to contributions |
How are you accessing the module?
OR
|
Am using emscripten for my front end code. Simple js + wasm, no node js. “A quick example” at https://emscripten.org/docs/porting/connecting_cpp_and_javascript/embind.html sums it. |
Hmm, ok. I suppose we would need a manual option for this then, since Emscripten's JS file can be run either in a browser or NodeJS context |
On second thought, there appear to be quite a few ways to consume the library, so it may be simpler to add the window level export in your own |
Running tsembind <myfilegeneratedbyemscripten.js> fails with the following error:
The text was updated successfully, but these errors were encountered: