openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.98k stars 2.55k forks source link

Emscripten 3.1.64 - Latest Libraries #8056

Open danoli3 opened 4 months ago

danoli3 commented 4 months ago

Latest Potions | Libraries:

EMSDK - 3.1.64 https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md

Alternative Apothecary Potions available

danoli3 commented 4 months ago

Added

apache setting for WebAssembly COOP Requirement

https://docs.apryse.com/documentation/web/faq/wasm-threads/#configuring-your-website

https://emscripten.org/docs/compiling/WebAssembly.html

Options Multiviews RemoveType .gz AddEncoding x-gzip .gz AddType application/wasm .wasm AddOutputFilterByType DEFLATE application/wasm



### Emscripten update TODO:a
- template shell html updated with new module code (slight differences in shell template currently causing issues)
- testing on Local runner 
- testing on Apache
- nginix server config template added like apache
- copy template server file to output directory for website files 
- JS check / library - for browser compatibility for **WASM**
- JS check / library - for browser compatibility for **pThreads** (if used)
- JS check / library - for browser compatibility for **memory64**  (if used)
danoli3 commented 4 months ago

Currently working on getting Emscripten latest working as requirement for PirateJam is webgl submission https://itch.io/jam/pirate

I've been working on a GLFW binding as well rather than HTML5 context binding that is currently being used in ofxEmscriptenWindow.

With GLFW we get ability for multi window system i.e. many canvas

danoli3 commented 3 months ago

The simple and safe thing is to pass all -s flags at both compile and link time.