-
Notifications
You must be signed in to change notification settings - Fork 52
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
freetype emscripten solution #366
Comments
Actually it should be build with atomics features, otherwise there are this errors, if build with Most other libs are build with atomics features (because they had those issues, too), but no idea how to enable it here... Also some warnings, but without USE_PTHREADS it seems to work well:
|
Thanks I'll have a look at binding those depends. We still thinking .o instead of .wasm? Is maybe the final oF make script not searching for correct .wasm or .o files maybe |
In this case it creates an |
Thats how I did the pthread stuff in the other libs: https://github.com/openframeworks/apothecary/pull/262/files Found a way to compile freetype with pthread support (and it works):
|
I was reading about PTHREAD and emscripten And interesting reading on this here: |
@danoli3 OF with pthreads already works (all of the multithreading examples). But the used precompiled libs need to be build with pthreads, too. It is still possible to build the app without pthread support. The main downside in my opinion is the cors policy: https://stackoverflow.com/questions/76920200/webaudioworklet-in-webassembly-shared-array-buffer-not-defined And I did not know that and did not experiences any issues so far (but good to be carfeful, at least):
https://groups.google.com/g/emscripten-discuss/c/kFbIbXAGVd0 |
Interesting, their take is offer two compiled versions, with and without pthreads, something we could look into if it's problematic. Sweet. We shall look at the getting core changes merged today |
Okay do we have a consensus somewhere of what the binary/libraries format should be for latest emscripten? Looking into this after VS macOS stuff |
So what was the consensus for emscripten, build into .o files and link to those? This is confusing as hell |
@danoli3 yes, I guess so. Can check it this weekend. Sorry for the confusion. |
Almost got all this working now. I think the issue you were experiencing was the mk files were using embedded freetype, and until you called Make install, it overwrote the embedded one essentially. Got this all working now |
@Jonathhhan can you test out openframeworks/openFrameworks#8056 I today will be adding GLFW support rather than EGL HTML5 context binding (problematic) |
I think I found a solution for Emscriptens freetype lib.
But not sure how to change this script accordingly: https://github.com/openframeworks/apothecary/blob/bleeding/apothecary/formulas/freetype/freetype.sh
I downloaded the latest freetype: https://github.com/freetype/freetype
And compiled it like that: emscripten-core/emscripten#10851
Maybe someone can use it for updating the script?
The text was updated successfully, but these errors were encountered: