Page 1 of 1

ESP-BOX: Enabling LVGL Lottie Animations

Posted: Wed Jan 12, 2022 6:47 pm
by vanfosst
Hi,

I have been able to enable lottie animations in a hacky fashion, by directly building the Rlottie library as a component to a project and display rlottie animations per https://github.com/lvgl/lv_lib_rlottie/issues/3

However, this method is ugly, inefficient and not scalable.

Instead, I would like to rely upon an installed rlottie library per https://docs.lvgl.io/8.1/libs/rlottie.h ... ld-rlottie

In esp-idf, how would I go about adding the rlottie library?

Per LVGL documentation, a -lrlottie flag is added, but I'm not sure how to add the same to an idf project. Notably, the rlottie library builds out to a .so package, that I'm unsure if its even capable of loading on the idf.

Any help/direction would be much appreciated!

Re: ESP-BOX: Enabling LVGL Lottie Animations

Posted: Thu Jan 13, 2022 1:26 am
by ESP_Sprite
You're working in a non-Unix, non-shared-library compatible environment on the ESP32... there is no such concept as 'installed library'. The way you did it (package rlottie into a separate component) is the proper one.