-
Notifications
You must be signed in to change notification settings - Fork 284
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
Building a WASM #356
Comments
@jarikomppa hello... Do you have time to look at this? |
I did this on OSX to get wasm (using cmake, which you can install with
This gives me libsoloud.a, which is a static lib for emscripten. It also builds the demos as wasm.
If you want to turn the .a file into a big wasm/js library:
This exports a ton of random things, so is probably not exactly the right way (would be better to surgically export what you are actually using, from a C file with |
You can also see some 1-off emscripten-builds in |
@ChaseCarlson why 😕 ? If you have a look here you can see it references
Is it somewhere else? |
Played with it a bunch on my fork and I still can't get the right combo of engine/flags/js to be able to reach into the wasm and play things, but I think it's a start. |
Compile source:
Compile WASM:
The command expands to:
The error:
The file with the exported functions:
Operating system: OSX
The text was updated successfully, but these errors were encountered: