lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library

Home Page:https://lvgl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lv_demo_widgets, no member "text_length"

epikao opened this issue · comments

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

Your LVGL version is outdated.

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

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

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

That would be really great...

I've updated all 3 repos:

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

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.