Managed to get a basic Kotlin Native program ( <ht...
# gui
n
Managed to get a basic Kotlin Native program ( https://gitlab.com/napperley/lvgl-hello ) working on the Raspberry Pi 4 that uses the LVGL library ( https://lvgl.io/ ), and the Linux Frame Buffer ( https://en.wikipedia.org/wiki/Linux_framebuffer#:~:text=The%20Linux%20framebuffer%20(fbdev)%20is,typically%20on%20the%20system%20console. ) as the backend 🎉. The two main issues with the program are the graphical corruption caused by the mouse cursor, and the resolution (1280x720) isn't fully utilized (only half of the screen is used). Memory usage is around 4.2 MB (reserved memory) with the old Kotlin Native memory model. Release binary size is around 1.2 MB (all libraries are statically linked). I am wondering if there are some Kotlin team members interested in using this project as a use case (Embedded Linux GUIs) for the new Kotlin Native memory model (via the experimental tracing GC). Here are some YouTube videos that will give you a basic idea of what the LVGL library (originally designed for Micro Controllers but also supports Embedded Linux devices) is capable of: • 100MHz oscilloscope with Raspberry pi PICO, micropython and LVGL (

https://youtu.be/rAWYpLoQVxYâ–¾

) • LVGL Raspberry Pi SDL2 (

https://youtu.be/wEsPvbL4dT8â–¾

) • Raspberri Pi & radioberry trancever using LVGL GUI (

https://youtu.be/PQ_Np5SfcxAâ–¾

) • IDO SMLCD72 V1 2EC - board certification review | LVGL (

https://youtu.be/ut0-dHNNsD4â–¾

) • LVGL Printer Demo GUI on STM32F769 Discovery (800 x 480) (

https://youtu.be/ZUJxbCbBod0â–¾

) • LVGL Widgets Demo GUI on STM32F769 Discovery (800 x 480) (

https://youtu.be/I5iTb9AkY2wâ–¾

) • tft lvgl ui demo (

https://youtu.be/iG1S-sk82sQâ–¾

) • RepPanel Demo 1 (

https://youtu.be/FfghWz1Lrw4â–¾

)
K 3
Average CPU usage (on all cores) is around 1%.
Display resolution (incl colour depth) will significantly impact the amount of RAM reserved by the program.
g
Please @napperley, what does the RAM usage look like?
n
There are some issues that need to be resolved first before providing more in depth memory usage data: https://github.com/lvgl/lvgl/issues/2756
g
Oh, OK I see.