Page 1 of 1

LVGL cannot resolve libpng and FatFS

Posted: Tue Dec 10, 2024 8:38 am
by dmitrij999
Hello everyone!

I'm trying to make LVGL to show pictures from SD-card, and I need 2 libraries: libpng and FatFS.
LVGL (9.2.2) and espressif/libpng (^1.6.39~1) are managed components by idf_component, and FatFS comes from ESP-IDF.
When I activate option "PNG decoder (libpng) library" in 3rd-party libs of LVGL, the buidl fails due to LVGL cannot resolve <png.h>, which is in espressif/libpng.
And when I activate "File system on top of FatFS", LVGL cannot resolve "ff.h".

How to resolve these dependencies?

Re: LVGL cannot resolve libpng and FatFS

Posted: Thu Dec 12, 2024 10:21 am
by haberturdeur
Hi,
could you please post link to your repo/minimal setup, so we can better help you.
Thank you.

Re: LVGL cannot resolve libpng and FatFS

Posted: Fri Dec 13, 2024 4:17 pm
by dmitrij999
I figured out how to enable PNG images support and get images from SD card (that was my final goal).
I refused from use of external libpng and enabled internal PNG library embedded to LVGL.
As for reading images from external SD card, I set parameter "File system on top of STDIO"

Re: LVGL cannot resolve libpng and FatFS

Posted: Thu Sep 04, 2025 8:21 am
by 20142796
Hello everyone!

I'm trying to make LVGL to show pictures from SD-card, and I need 2 libraries: libpng and FatFS.
LVGL (9.2.2) and espressif/libpng (^1.6.39~1) are managed components by idf_component, and FatFS comes from ESP-IDF.
When I activate option "PNG decoder (libpng) library" in 3rd-party libs of LVGL, the buidl fails due to LVGL cannot resolve <png.h>, which is in espressif/libpng.
And when I activate "File system on top of FatFS", LVGL cannot resolve "ff.h".

How to resolve these dependencies?
I'm trying to read an image from a card to a display. Can you help me with an example of your code? I work with ESP-IDF 5.5 LVGL 9.3