-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
make the CMake_WASM example work again #470
Conversation
thanks 👍 I will try to add a github workflow to test the WASM example and prevent code erosion in the future, I'm a complete noob with WASM too 🤭 and this is the perfect occasion to learn more can you confirm these are the steps to follow:
|
yes, that is the steps I followed - no specific version, just latest have a look at the notes in the README - very useful tutorial referenced there |
that's for local testing, right? while it makes sense to mention it in the readme, the github workflow probably won't need that as the assets will be published on github pages |
nope, local testing only - nothing todo with this repo |
puslishing to github-pages seems to work on my fork |
excellent! |
hm, try this with Canary: https://static.mah.priv.at/public/lovyan.html I cannot with yours: https://tobozo.github.io/LovyanGFX/WASM/ , unclear why: I guess this is the filepath mapping issue mentioned in the tutorial anyway good to go! |
oh the workflow only published the index.html file, more files are required maybe? I try to keep my machine Chrome-free so I didn't test with the extension 😉 |
no I dont think so, I just pushed index.html to my server it seems SINGLE_FILE=1 wraps all assets including DWARF info into the wasm blob I have given up resistance on chrome ;) |
this works for me including in-browser C-level debugging with the modified
lgfx::Panel_sdl
APIunsure if this is the right way to do it - grateful for a review