Skip to content

Add ThorVG (lottie) support to LVGL #83519

@thomasstenersen

Description

@thomasstenersen

Is your feature request related to a problem? Please describe.
PR #68168 updates LVGL to version 9+ which now has built-in support for handling lottie animations through ThorVG. However, to limit the scope of the PR, it does not include the necessary changes to make ThorVG work in Zephyr.

To get the added ThorVG support there are a few minor things that needs to be fixed:

  1. Fix some minor issues related to cross compilation (at least with GNU Arm toolchain) in LVGL/ThorVG:
  2. Expose strdup() in the libc
  3. Add the ThorVG sources to the LVGL module: thomasstenersen@e4665f5

Describe the solution you'd like
It looks like ThorVG is copied directly from https://github.com/thorvg/thorvg into https://github.com/lvgl/lvgl, so fixing the first issue should be done with a PR to ThorVG first before updating https://github.com/lvgl/lvgl and pulling in the update into Zephyr. Exposing strdup() in the libc can be done independently though.

Additional context
I've created a proof of context branch in my Zephyr fork. I've also added a sample (samples/subsys/display/lvgl_lottie) to showcase the feature. The sample has been tested on native_sim and stm32f746g_disco.

Metadata

Metadata

Assignees

Labels

Feature RequestA request for a new featurearea: LVGLLight and Versatile Graphics Library Support

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions