Hi guys,
Good day to you all.
I’ve been wanting to build a cross-platform project and by cross-platform, I mean I wanted it to be available on mobile phones and tablets, as well as regular PC platforms.
Being an embedded engineer all my professional years, well acquainted with C/C++, and apparently too stubborn to learn front-end stuff effectively, I thought, how hard could it be to build PWAs with C++?
I’ve been hammering away at the idea these past few weeks, and I’ve come up with something that I’d like to share, it’s pretty much a work in progress but I’m very pleased with the results and I might have accidentally landed on a perfect LVGL development workflow.
I’ve prepared a template for a PWA project using C++, LVGL, and Emscripten, you can find it here, it includes a supporting filesystem driver to enable fetching and loading images, fonts, etc… just like a normal web application would, and my attempt at wrapping LVGL in C++.
Aaand debugging, while a bit tricky to set up the first time, works flawlessly, and I’ve prepared steps to set it up in VSCode or Chrome DevTools.
While I can’t share the actual project that I’m working on, here’s a screenshot of my workflow in VSCode, with an almost instant preview of the project running.