PINE64
Article: (Possibly) LVGL in WebAssembly with Zig Compiler - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: Article: (Possibly) LVGL in WebAssembly with Zig Compiler (/showthread.php?tid=18281)



Article: (Possibly) LVGL in WebAssembly with Zig Compiler - lupyuen - 05-30-2023

Zig Compiler works great for compiling C Libraries into WebAssembly. Can we preview an LVGL App in the Web Browser… With WebAssembly and Zig Compiler?

Let’s find out! In this article we’ll…

(1) Run a Zig LVGL App on PinePhone (with Apache NuttX RTOS)

(2) Explain how Zig works with WebAssembly (and C Libraries)

(3) Compile LVGL Library from C to WebAssembly (with Zig Compiler)

(4) Test it with our LVGL App (in Zig)

(5) Render Simple LVGL UIs (in Web Browser)

(6) Later we might render LVGL UI Controls (with Touch Input)

Check out the article…

(Possibly) LVGL in WebAssembly with Zig Compiler



[Image: lvgl3-title.png]