lvgl / lv_lib_gif

GIF library for LVGL
MIT License
36 stars 13 forks source link

CANT FIND DEFINE #5

Closed chliii closed 4 years ago

chliii commented 4 years ago

error

chliii commented 4 years ago

error2 run on the CLION for ESP32

kisvegabor commented 4 years ago

As stated in the README you need to use the feat/new-fs-api branch of LVGL with the GIF decoder.

chliii commented 4 years ago

error 2

And,did I set the path is true ? lv_obj_t *img = lv_gif_create_from_file(lv_scr_act(), "p/ship.gif"); lv_obj_align(img, NULL, LV_ALIGN_CENTER, 0, 0);

chliii commented 4 years ago

the function "ftruncate" cant compile on the ESP32.

if defined(CYGWIN) || defined(rtems) || defined(aarch64) || defined (arm) || defined(sh) || defined(SPU)

if !defined(__INSIDE_CYGWIN__)

int _EXFUN(ftruncate, (int __fd, off_t length)); int _EXFUN(truncate, (const char *, off_t length));

endif

endif

kisvegabor commented 4 years ago

Hm, if ftruncate is a standard C function however it's important to support ESP32. If you remove this function the rest is working?

chliii commented 4 years ago

Hi, if I remove this function the rest is working,but,the screen only show No data.

chliii commented 4 years ago

My WARNING and the screen 4 3

kisvegabor commented 4 years ago

How do you set the path of the gif?

Please enable the logging of LVGL to see what's going on.