Rlottie error: lv_rlottie.c:229: undefined reference to `lottie_animation_render'

Hi everyone. Im using ESP32-2432S028 with LVGL and its amazing. Today i tried to use rlottie with LVGL, but its not working. Then i activated it in lv_conf.h file, and finally i imported the rlottie library to my project.
I did it like this:

  • Downloaded 0.2 (latest) version of rlottie by Samsung on GitHub
  • Renamed the folder (rlottie-0.2 to rlottie)
  • Moved that folder to lib folder
    And also, my platformio.ini file looks like this now:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_extra_dirs = 
    ~/Documents/Arduino/libraries
    lib/rlottie
lib_deps = 
    ArduinoJson

(lvgl and other required libraries are in Arduino/libraries)

And my output is:

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.7.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20016.0 (2.0.16) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - tool-mkfatfs @ 2.0.1 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 2.230.0 (2.30) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 49 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 7.1.0
|-- TFT_eSPI @ 2.5.34
|-- XPT2046_Touchscreen
|-- lvgl @ 9.1.0
|-- inc
Building in release mode
Compiling .pio/build/esp32dev/src/main.cpp.o
Linking .pio/build/esp32dev/firmware.elf
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.lv_rlottie_destructor+0x0): undefined reference to `lottie_animation_destroy'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.lv_rlottie_constructor+0x18): undefined reference to `lottie_animation_from_data'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.lv_rlottie_constructor+0x1c): undefined reference to `lottie_animation_from_file'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.lv_rlottie_constructor+0x20): undefined reference to `lottie_animation_get_totalframe'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.lv_rlottie_constructor+0x24): undefined reference to `lottie_animation_get_framerate'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o):(.literal.next_frame_task_cb+0x0): undefined reference to `lottie_animation_render'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o): in function `lv_rlottie_destructor':
/Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:162: undefined reference to `lottie_animation_destroy'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o): in function `lv_rlottie_constructor':
/Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:117: undefined reference to `lottie_animation_from_data'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:120: undefined reference to `lottie_animation_from_file'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:127: undefined reference to `lottie_animation_get_totalframe'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:128: undefined reference to `lottie_animation_get_framerate'
/Users/myusufy/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32dev/libdcb/liblvgl.a(lv_rlottie.c.o): in function `next_frame_task_cb':
/Users/myusufy/Documents/Arduino/libraries/lvgl/src/libs/rlottie/lv_rlottie.c:229: undefined reference to `lottie_animation_render'

If you need any more info, i will give it as well :slight_smile:

Thanks!

Were you able to fix this?
Iā€™m using LVGL 9.1 in a MaTouch ESP32-S3 AMOLED with Touch 1.78ā€ CHSC6417