Errors with LV_Conf.h when trying to Verify LVGL_arduino.ino

Hi: I’m new to LVGL. I want to get my LVGL running so I can use SquareLine studio. I have Installed the libraries and configured the LV_Conf.h, and other files as directed.

I am trying to run the Arduino example LVGL_arduin.ino example. When I try to verify I get the following errors:
C:/Users/16173/OneDrive/Documents/Arduino/libraries/lv_conf.h:640:2: error: #elif without #if
640 | #elif defined (CONFIG_LVGL_THEME_MONO)
| ^~~~
C:/Users/16173/OneDrive/Documents/Arduino/libraries/lv_conf.h:648:2: error: #endif without #if
648 | #endif
| ^~~~~

I have printed the lines reference below and I think they are fine. Here they are:

Finally I have this error that I don’t understand: C:/Users/16173/OneDrive/Documents/Arduino/libraries/lvgl/src/widgets/image/lv_image.h:22:2: error: #error “lv_img: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1)”
22 | #error “lv_img: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1)”
| ^~~~~

Can someone help me on these? I’m frustrated at this point. thanks Shawn
I have been trying to get this working for several daya

Which LVGL version are you using, mine is 9.2.2 and its doesn’t have what you mentioned.
Regarding the error its saying there is no #if defined before #elif, so might have to look into that. Paste the file here as well as the complete errors.

Just to test you can try building it again by editing this #elif to #if on line 640 and see if it works but I am certain the problem lies somewhere else.

Hi Nehal: Thanks for your reply. I determined that the issue was related to my trying to install a previous version of Lvgl over a later one.

I do have another issue: “lvgh.h: No such file or directory” I have it located as instructed (at the same level as LVGL and ither libraries under the libraries directory) so I am at a loss. I even tried to hard code the location.

Any suggestions would be appreciated. thanks

The name is incorrect “lvgh.h: No such file or directory”

it should be lvgl.h

My mistake. thanks!