adafruit / Adafruit_LvGL_Glue

“Glue” library between LittlevGL and Adafruit GFX (SPITFT)
Other
35 stars 14 forks source link

Complier report 'lv_disp_buf_t' does not name a type error #15

Open zivyuan opened 3 years ago

zivyuan commented 3 years ago

Compile Error details;

.pio/libdeps/nodemcuv2/Adafruit LittlevGL Glue Library/Adafruit_LvGL_Glue.h:46:3: error: 'lv_disp_buf_t' does not name a type; did you mean 'lv_disp_drv_t'?
   46 |   lv_disp_buf_t lv_disp_buf;
      |   ^~~~~~~~~~~~~
      |   lv_disp_drv_t
*** [.pio/build/nodemcuv2/src/main.cpp.o] Error 1

My device is NodemcuV2 with ST7789 TFT display.

According to the error message it was seems something missing. I've tried to search 'lv_disp_buf_t' in lvgl code but found nothing.

Here is my lib_deps list.

lib_deps =
    adafruit/Adafruit ST7735 and ST7789 Library@^1.7.3
    adafruit/Adafruit BusIO@^1.8.3
    adafruit/Adafruit GFX Library@^1.10.10
    adafruit/Adafruit LittlevGL Glue Library@^2.0.2

Is there any thing special configuration for lvgl lib?

截屏2021-08-10 04 47 33
smithrobs commented 2 years ago

@zivyuan I just ran into this as well - make sure you have the latest Adafruit LittlevGL Glue Library - @2.1.0 worked for me after I added the Adafruit fork of the SdFat lib

tyeth commented 1 year ago

I'm getting this on wokwi.com (arduino/esp32 simulator). Seems to not be able to find the version 2.1.0. Arduino IDE agrees:

image

Also similar info (who knows how reliable) on https://www.arduinolibraries.info/libraries/adafruit-littlev-gl-glue-library Something was missed during release/tagging...

-Edit- found the docs and can see the errors but they seem related to renaming the library and then a possible Depends issue... https://downloads.arduino.cc/libraries/logs/github.com/adafruit/Adafruit_LvGL_Glue/