Help needed - adding lvgl as component - compile error :(
Posted: Wed Aug 31, 2022 9:42 pm
Hello all,
I am very new to esp-idf and I am struggle to get a simple project to compile
My goal is to add lvgl and use it with my IL9488 based 3.9" TFT. I have tested wiring with Lovyangfx it it works fine.
so here is what I did
1. create project
$> idf.py create-project -p . lvgl_test
2. add component
$> idf.py add-dependency lvgl_esp32_drivers
This adds a dependency in idf_component.yml:
but seems idf's component manager are not able to resolve this dependency. I had to change it to
which fares better, meaning idf.py build command actually pull down the source and its own dependency : lvgl.
3. idf.py menuconfig
menuconfig now has 2 additional top level config entries
so I went into the driver section and configured proper driver and pin settings.
Now when I try to build, I get
bunch of compilation errors, one if them is
struct "<unnamed>" has no field "bit_num"
it just seems like the version of lvgl pulled is not compatible with esp-idf as the struct is defined by esp-idf and it has not such field.
the whole component registry thing feels a little brittle, I first tried to use it from VS Code and the install button only works for some components.
I'd really appreciate it if someone could help me to unstuck. Thanks in advance!
I am very new to esp-idf and I am struggle to get a simple project to compile
My goal is to add lvgl and use it with my IL9488 based 3.9" TFT. I have tested wiring with Lovyangfx it it works fine.
so here is what I did
1. create project
$> idf.py create-project -p . lvgl_test
2. add component
$> idf.py add-dependency lvgl_esp32_drivers
This adds a dependency in idf_component.yml:
Code: Select all
espressif/lvgl_esp32_drivers: "*"
Code: Select all
lvgl/lvgl_esp32_drivers: "==0.0.3"
3. idf.py menuconfig
menuconfig now has 2 additional top level config entries
Code: Select all
LVGL ESP Drivers --->
LVGL configuration --->
Now when I try to build, I get
bunch of compilation errors, one if them is
struct "<unnamed>" has no field "bit_num"
it just seems like the version of lvgl pulled is not compatible with esp-idf as the struct is defined by esp-idf and it has not such field.
the whole component registry thing feels a little brittle, I first tried to use it from VS Code and the install button only works for some components.
I'd really appreciate it if someone could help me to unstuck. Thanks in advance!