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?
LVGL cannot resolve libpng and FatFS
-
haberturdeur
- Espressif staff

- Posts: 5
- Joined: Thu Dec 12, 2024 10:17 am
Re: LVGL cannot resolve libpng and FatFS
Hi,
could you please post link to your repo/minimal setup, so we can better help you.
Thank you.
could you please post link to your repo/minimal setup, so we can better help you.
Thank you.
-
dmitrij999
- Posts: 100
- Joined: Sat Mar 02, 2019 8:06 pm
Re: LVGL cannot resolve libpng and FatFS
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"
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
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.3Hello 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?
Who is online
Users browsing this forum: Bing [Bot], Bytespider, Qwantbot and 5 guests