lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
488 stars 366 forks source link

lv_demo_widgets, no member "text_length" #141

Closed epikao closed 2 years ago

epikao commented 2 years ago

Hello, if enable lv_demo_widgets and compile, it shows dsc has no member "text_length"...

.pio\libdeps\disco_f746ng\lv_examples\src\lv_demo_widgets\lv_demo_widgets.c: In function 'chart_event_cb':
.pio\libdeps\disco_f746ng\lv_examples\src\lv_demo_widgets\lv_demo_widgets.c:1308:43: error: 'lv_obj_draw_part_dsc_t' {aka 'struct <anonymous>'} has no member named 'text_length'
 1308 |                 lv_snprintf(dsc->text, dsc->text_length, "%s", month[dsc->value]);
      |                                           ^~
.pio\libdeps\disco_f746ng\lv_examples\src\lv_demo_widgets\lv_demo_widgets.c:1311:43: error: 'lv_obj_draw_part_dsc_t' {aka 'struct <anonymous>'} has no member named 'text_length'
 1311 |                 lv_snprintf(dsc->text, dsc->text_length, "%s", month[dsc->value]);
      |                                           ^~
.pio\libdeps\disco_f746ng\lv_examples\src\lv_demo_widgets\lv_demo_widgets.c: In function 'shop_chart_event_cb':
.pio\libdeps\disco_f746ng\lv_examples\src\lv_demo_widgets\lv_demo_widgets.c:1423:39: error: 'lv_obj_draw_part_dsc_t' {aka 'struct <anonymous>'} has no member named 'text_length'
 1423 |             lv_snprintf(dsc->text, dsc->text_length, "%s", month[dsc->value]);
      |                                       ^~
Indexing .pio\build\disco_f746ng\lib155\libSPI.a
*** [.pio\build\disco_f746ng\lib6f7\lv_examples\lv_demo_widgets\lv_demo_widgets.c.o] Error 1
embeddedt commented 2 years ago

Your LVGL version is outdated.

epikao commented 2 years ago

Your LVGL version is outdated.

Yes, but unfortunately with platformIO there is still no update available for the lvgl library. So 8.0.1 is the latest I can add to the project. See screenshot below.

image

embeddedt commented 2 years ago

@kisvegabor might need to publish it manually: https://github.com/lvgl/lvgl/issues/2315#issuecomment-866099381

epikao commented 2 years ago

@kisvegabor might need to publish it manually: lvgl/lvgl#2315 (comment)

That would be really great...

kisvegabor commented 2 years ago

I've updated all 3 repos:

Aaand, it seems this time I didn't mess it up :smile:

epikao commented 2 years ago

I've updated all 3 repos:

Aaand, it seems this time I didn't mess it up 😄

Thank you very much, I could update and compile it now without errors.