Problems with the squarelinestudio_lvgl example

hi guys,
I am having enormous problems with the squarelinestudio_lvgl example.
this is the error message:

In file included from /private/var/folders/7s/v5ly7vts1pvfqgtmw4q_zv240000gn/T/.arduinoIDE-unsaved20231111-28007-hf0pgq.ptw8v/squarelinestudio_lvgl/squarelinestudio_lvgl.ino:26:0:
/private/var/folders/7s/v5ly7vts1pvfqgtmw4q_zv240000gn/T/.arduinoIDE-unsaved20231111-28007-hf0pgq.ptw8v/squarelinestudio_lvgl/ui.h:16:10: fatal error: src/ui.h: No such file or directory
 #include "src/ui.h"
          ^~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: src/ui.h: No such file or directory

I honestly wouldn't know how to solve it.
Plus I tried to create my own UI but I don't understand the process very well.
Squareline generates files that are organised in a different way and putting them all in a folder called: "UI" doesn't work.
could you get a more detailed tutorial here on the forum?

Hi @nocentini,
To correctly run the squarelinestudio_lvgl example, you have to move the ui folder into your Arduino/libraries directory.

Here you can find a useful guide on LVGL, Giga Display and Squareline studio.

I tried as you told me and the arduino example works.
but when I try to make my own graphics, this error comes up:

In file included from /private/var/folders/7s/v5ly7vts1pvfqgtmw4q_zv240000gn/T/.arduinoIDE-unsaved20231112-34322-mugnrm.mms7/sketch_dec12a/sketch_dec12a.ino:26:0:
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui.h:6:15: warning: extra tokens at end of #ifndef directive
 #ifndef _TEST GRAFICA_UI_H
               ^~~~~~~~~~~~
In file included from /Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui.h:25:0,
                 from /private/var/folders/7s/v5ly7vts1pvfqgtmw4q_zv240000gn/T/.arduinoIDE-unsaved20231112-34322-mugnrm.mms7/sketch_dec12a/sketch_dec12a.ino:26:
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:6:15: warning: extra tokens at end of #ifndef directive
 #ifndef _TEST GRAFICA_UI_HELPERS_H
               ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:6:0:
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:6:15: warning: extra tokens at end of #ifndef directive
 #ifndef _TEST GRAFICA_UI_HELPERS_H
               ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:13:0,
                 from /Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:6:
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui.h:6:15: warning: extra tokens at end of #ifndef directive
 #ifndef _TEST GRAFICA_UI_H
               ^~~~~~~~~~~~
In file included from /Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:6:0:
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:18:28: error: unknown type name 'lv_obj_t'
 void _ui_bar_set_property( lv_obj_t *target, int id, int val);
                            ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:24:30: error: unknown type name 'lv_obj_t'
 void _ui_basic_set_property( lv_obj_t *target, int id, int val);
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:27:33: error: unknown type name 'lv_obj_t'
 void _ui_dropdown_set_property( lv_obj_t *target, int id, int val);
                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:30:30: error: unknown type name 'lv_obj_t'
 void _ui_image_set_property( lv_obj_t *target, int id, uint8_t *val);
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:30:56: error: unknown type name 'uint8_t'
 void _ui_image_set_property( lv_obj_t *target, int id, uint8_t *val);
                                                        ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:33:30: error: unknown type name 'lv_obj_t'
 void _ui_label_set_property( lv_obj_t *target, int id, const char *val);
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:37:31: error: unknown type name 'lv_obj_t'
 void _ui_roller_set_property( lv_obj_t *target, int id, int val);
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:41:31: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_property( lv_obj_t *target, int id, int val);
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:43:25: error: unknown type name 'lv_obj_t'
 void _ui_screen_change( lv_obj_t ** target, lv_scr_load_anim_t fademode, int spd, int delay, void (*target_init)(void));
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:43:45: error: unknown type name 'lv_scr_load_anim_t'
 void _ui_screen_change( lv_obj_t ** target, lv_scr_load_anim_t fademode, int spd, int delay, void (*target_init)(void));
                                             ^~~~~~~~~~~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:45:25: error: unknown type name 'lv_obj_t'
 void _ui_screen_delete( lv_obj_t ** target );
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:47:25: error: unknown type name 'lv_obj_t'
 void _ui_arc_increment( lv_obj_t *target, int val);
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:49:25: error: unknown type name 'lv_obj_t'
 void _ui_bar_increment( lv_obj_t *target, int val, int anm);
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:51:28: error: unknown type name 'lv_obj_t'
 void _ui_slider_increment( lv_obj_t *target, int val, int anm);
                            ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:53:31: error: unknown type name 'lv_obj_t'
 void _ui_keyboard_set_target( lv_obj_t *keyboard, lv_obj_t *textarea);
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:53:51: error: unknown type name 'lv_obj_t'
 void _ui_keyboard_set_target( lv_obj_t *keyboard, lv_obj_t *textarea);
                                                   ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:58:23: error: unknown type name 'lv_obj_t'
 void _ui_flag_modify( lv_obj_t *target, int32_t flag, int value);
                       ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:58:41: error: unknown type name 'int32_t'
 void _ui_flag_modify( lv_obj_t *target, int32_t flag, int value);
                                         ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:63:24: error: unknown type name 'lv_obj_t'
 void _ui_state_modify( lv_obj_t *target, int32_t state, int value);
                        ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:63:42: error: unknown type name 'int32_t'
 void _ui_state_modify( lv_obj_t *target, int32_t state, int value);
                                          ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:65:29: error: unknown type name 'lv_event_t'
 void scr_unloaded_delete_cb(lv_event_t * e);
                             ^~~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:67:23: error: unknown type name 'lv_obj_t'
 void _ui_opacity_set( lv_obj_t *target, int val);
                       ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:71:5: error: unknown type name 'lv_obj_t'
     lv_obj_t *target;
     ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:72:5: error: unknown type name 'lv_img_dsc_t'
     lv_img_dsc_t **imgset;
     ^~~~~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:73:5: error: unknown type name 'int32_t'
     int32_t imgset_size;
     ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:74:5: error: unknown type name 'int32_t'
     int32_t val;
     ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:76:39: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_free_user_data(lv_anim_t *a);
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:78:30: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_x(lv_anim_t* a, int32_t v);
                              ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:78:44: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_x(lv_anim_t* a, int32_t v);
                                            ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:80:30: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_y(lv_anim_t* a, int32_t v);
                              ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:80:44: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_y(lv_anim_t* a, int32_t v);
                                            ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:82:34: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_width(lv_anim_t* a, int32_t v);
                                  ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:82:48: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_width(lv_anim_t* a, int32_t v);
                                                ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:84:35: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_height(lv_anim_t* a, int32_t v);
                                   ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:84:49: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_height(lv_anim_t* a, int32_t v);
                                                 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:86:36: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_opacity(lv_anim_t* a, int32_t v);
                                    ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:86:50: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_opacity(lv_anim_t* a, int32_t v);
                                                  ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:88:39: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_zoom(lv_anim_t* a, int32_t v);
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:88:53: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_zoom(lv_anim_t* a, int32_t v);
                                                     ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:90:40: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_angle(lv_anim_t* a, int32_t v);
                                        ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:90:54: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_angle(lv_anim_t* a, int32_t v);
                                                      ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:92:40: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_frame(lv_anim_t* a, int32_t v);
                                        ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:92:54: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_frame(lv_anim_t* a, int32_t v);
                                                      ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:94:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_x(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:94:33: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_x(lv_anim_t* a);
                                 ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:96:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_y(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:96:33: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_y(lv_anim_t* a);
                                 ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:98:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_width(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:98:37: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_width(lv_anim_t* a);
                                     ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:100:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_height(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:100:38: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_height(lv_anim_t* a);
                                      ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:102:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_opacity(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:102:39: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_opacity(lv_anim_t* a);
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:104:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_zoom(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:104:42: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_zoom(lv_anim_t* a);
                                          ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:106:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_angle(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:106:43: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_angle(lv_anim_t* a);
                                           ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:108:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_frame(lv_anim_t* a);
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:108:43: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_frame(lv_anim_t* a);
                                           ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:110:30: error: unknown type name 'lv_obj_t'
 void _ui_arc_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix);
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:110:45: error: unknown type name 'lv_obj_t'
 void _ui_arc_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix);
                                             ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:112:33: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix);
                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:112:48: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix);
                                                ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:114:34: error: unknown type name 'lv_obj_t'
 void _ui_checked_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *txt_on, const char *txt_off);
                                  ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:114:49: error: unknown type name 'lv_obj_t'
 void _ui_checked_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *txt_on, const char *txt_off);
                                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.h:116:23: error: unknown type name 'lv_obj_t'
 void _ui_spinbox_step(lv_obj_t * target, int val)
;
                       ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:8:28: error: unknown type name 'lv_obj_t'
 void _ui_bar_set_property( lv_obj_t *target, int id, int val)
                            ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:14:30: error: unknown type name 'lv_obj_t'
 void _ui_basic_set_property( lv_obj_t *target, int id, int val)
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:22:33: error: unknown type name 'lv_obj_t'
 void _ui_dropdown_set_property( lv_obj_t *target, int id, int val)
                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:27:30: error: unknown type name 'lv_obj_t'
 void _ui_image_set_property( lv_obj_t *target, int id, uint8_t *val)
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:27:56: error: unknown type name 'uint8_t'
 void _ui_image_set_property( lv_obj_t *target, int id, uint8_t *val)
                                                        ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:32:30: error: unknown type name 'lv_obj_t'
 void _ui_label_set_property( lv_obj_t *target, int id, const char *val)
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:37:31: error: unknown type name 'lv_obj_t'
 void _ui_roller_set_property( lv_obj_t *target, int id, int val)
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:43:31: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_property( lv_obj_t *target, int id, int val)
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:49:25: error: unknown type name 'lv_obj_t'
 void _ui_screen_change( lv_obj_t ** target, lv_scr_load_anim_t fademode, int spd, int delay, void (*target_init)(void))
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:49:45: error: unknown type name 'lv_scr_load_anim_t'
 void _ui_screen_change( lv_obj_t ** target, lv_scr_load_anim_t fademode, int spd, int delay, void (*target_init)(void))
                                             ^~~~~~~~~~~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:56:25: error: unknown type name 'lv_obj_t'
 void _ui_screen_delete( lv_obj_t ** target )
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:65:25: error: unknown type name 'lv_obj_t'
 void _ui_arc_increment( lv_obj_t *target, int val)
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:72:25: error: unknown type name 'lv_obj_t'
 void _ui_bar_increment( lv_obj_t *target, int val, int anm)
                         ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:78:28: error: unknown type name 'lv_obj_t'
 void _ui_slider_increment( lv_obj_t *target, int val, int anm)
                            ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:85:31: error: unknown type name 'lv_obj_t'
 void _ui_keyboard_set_target( lv_obj_t *keyboard, lv_obj_t *textarea)
                               ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:85:51: error: unknown type name 'lv_obj_t'
 void _ui_keyboard_set_target( lv_obj_t *keyboard, lv_obj_t *textarea)
                                                   ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:90:23: error: unknown type name 'lv_obj_t'
 void _ui_flag_modify( lv_obj_t *target, int32_t flag, int value)
                       ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:90:41: error: unknown type name 'int32_t'
 void _ui_flag_modify( lv_obj_t *target, int32_t flag, int value)
                                         ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:100:24: error: unknown type name 'lv_obj_t'
 void _ui_state_modify( lv_obj_t *target, int32_t state, int value)
                        ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:100:42: error: unknown type name 'int32_t'
 void _ui_state_modify( lv_obj_t *target, int32_t state, int value)
                                          ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:111:29: error: unknown type name 'lv_event_t'
 void scr_unloaded_delete_cb(lv_event_t * e)
                             ^~~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:118:23: error: unknown type name 'lv_obj_t'
 void _ui_opacity_set( lv_obj_t *target, int val)
                       ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:123:39: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_free_user_data(lv_anim_t *a)
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:129:30: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_x(lv_anim_t* a, int32_t v)
                              ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:129:44: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_x(lv_anim_t* a, int32_t v)
                                            ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:135:30: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_y(lv_anim_t* a, int32_t v)
                              ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:135:44: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_y(lv_anim_t* a, int32_t v)
                                            ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:141:34: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_width(lv_anim_t* a, int32_t v)
                                  ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:141:48: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_width(lv_anim_t* a, int32_t v)
                                                ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:147:35: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_height(lv_anim_t* a, int32_t v)
                                   ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:147:49: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_height(lv_anim_t* a, int32_t v)
                                                 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:153:36: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_opacity(lv_anim_t* a, int32_t v)
                                    ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:153:50: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_opacity(lv_anim_t* a, int32_t v)
                                                  ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:159:39: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_zoom(lv_anim_t* a, int32_t v)
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:159:53: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_zoom(lv_anim_t* a, int32_t v)
                                                     ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:165:40: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_angle(lv_anim_t* a, int32_t v)
                                        ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:165:54: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_angle(lv_anim_t* a, int32_t v)
                                                      ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:171:40: error: unknown type name 'lv_anim_t'
 void _ui_anim_callback_set_image_frame(lv_anim_t* a, int32_t v)
                                        ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:171:54: error: unknown type name 'int32_t'
 void _ui_anim_callback_set_image_frame(lv_anim_t* a, int32_t v)
                                                      ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:180:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_x(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:180:33: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_x(lv_anim_t* a)
                                 ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:186:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_y(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:186:33: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_y(lv_anim_t* a)
                                 ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:192:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_width(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:192:37: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_width(lv_anim_t* a)
                                     ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:198:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_height(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:198:38: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_height(lv_anim_t* a)
                                      ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:204:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_opacity(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:204:39: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_opacity(lv_anim_t* a)
                                       ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:210:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_zoom(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:210:42: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_zoom(lv_anim_t* a)
                                          ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:216:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_angle(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:216:43: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_angle(lv_anim_t* a)
                                           ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:222:1: error: unknown type name 'int32_t'
 int32_t _ui_anim_callback_get_image_frame(lv_anim_t* a)
 ^~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:222:43: error: unknown type name 'lv_anim_t'
 int32_t _ui_anim_callback_get_image_frame(lv_anim_t* a)
                                           ^~~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:228:30: error: unknown type name 'lv_obj_t'
 void _ui_arc_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix)
                              ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:228:45: error: unknown type name 'lv_obj_t'
 void _ui_arc_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix)
                                             ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:235:33: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix)
                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:235:48: error: unknown type name 'lv_obj_t'
 void _ui_slider_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *prefix, const char *postfix)
                                                ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:241:34: error: unknown type name 'lv_obj_t'
 void _ui_checked_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *txt_on, const char *txt_off)
                                  ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:241:49: error: unknown type name 'lv_obj_t'
 void _ui_checked_set_text_value( lv_obj_t *trg, lv_obj_t *src, const char *txt_on, const char *txt_off)
                                                 ^~~~~~~~
/Users/andreanocentini/Documents/Arduino/libraries/ui/src/ui_helpers.c:247:23: error: unknown type name 'lv_obj_t'
 void _ui_spinbox_step(lv_obj_t * target, int val)
                       ^~~~~~~~

exit status 1

Compilation error: exit status 1

Did you follow this guide?

Are you sure that the Squareline studio settings in your project match those shown in the figure?

Please, attach your ui files! I will take a look!

right now I have a more serious problem
https://forum.arduino.cc/t/arduino-not-detected-by-pc/1199550

HI Leo,
I'm trying to get the giga display going, following the guide you mentioned above. Everything goes well, except for one compile error (below). In SquareLine, just to keep things simple, I added only one button, otherwise a blank display. Code is unchanged from the example. The output is too long to include, but below is the only error, (and no warnings). Any hints? Thank you!

#include "Arduino_H7_Video.h"
#include "Arduino_GigaDisplayTouch.h"

#include "lvgl.h"
#include "ui.h"

/* Insert resolution WxH according to your SquareLine studio project settings */
Arduino_H7_Video          Display(800, 480, GigaDisplayShield); 
Arduino_GigaDisplayTouch  Touch;

void setup() {
  Display.begin();
  Touch.begin();

  ui_init();
}

void loop() {

  /* Feed LVGL engine */
  lv_timer_handler();
}

c:\Users\Patty\Documents\OneDrive - Emory University\Arduino\libraries\lvgl\src\osal\lv_freertos.c:22:14: fatal error: atomic.h: No such file or directory
#include "atomic.h"
^~~~~~~~~~
compilation terminated.
Alternatives for atomic.h: []
ResolveLibrary(atomic.h)
-> candidates: []
exit status 1

Compilation error: exit status 1

And here is the ui folder appearance
Picture1

Hi @laramsey. This result is a bit mysterious. Do you have a custom lv_conf.h file? The #include "atomic.h" directive is conditional on the LV_USE_OS configuration macro being set to LV_OS_FREERTOS:

The LVGL configuration provided by current release version of the "Arduino_H7_Video" library doesn't set that macro at all, since the macro was introduced in version 9.0.0 of the "lvgl" library and the current release version of the "Arduino_H7_Video" library is written for use with version 8.x of the "lvgl" library.

Support for version 9.x of the "lvgl" library has been added to the development version of the "Arduino_H7_Video" library, but that configuration macro is set to LV_OS_NONE instead of LV_OS_FREERTOS (which makes sense since the GIGA R1 WiFi board doesn't use FreeRTOS):


Unless you have applied the patches that are needed to use version 9.x of the "lvgl" library, I think the best solution will be to simply install version 8.4.0 of the library and use that until everything (already done for "Arduino_GigaDisplayTouch library, but "Arduino_H7_Video" library is pending the next release of the "Arduino Mbed OS GIGA Boards" platform and SquareLine Studio is also TBD) has full support for version 9.x of the "lvgl" library. I'll provide instructions you can follow to do that:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
  2. Type lvgl in the "Filter your search..." field.
  3. Scroll down through the list of libraries until you see the "lvgl" entry.
  4. You will see a drop-down version menu at the bottom of the entry. Select "8.4.0" from the menu.
  5. Click the "INSTALL" button at the bottom of the entry.
  6. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library ...

Arduino IDE will periodically display a notification that offers to update the library for you:

Updates are available for some of your libraries.

If you click the "INSTALL MANUALLY" button in the notification, a list of each of the libraries that have available updates will be shown in the Arduino IDE Library Manager. It is generally a good idea to keep your libraries updated since the updates might provide important enhancements or bug fixes. So you should look through the list and update other libraries if appropriate, but you should avoid accepting the update for the "lvgl" library until everything is in place for version 9.x compatibility.

Even after downgrading the library, it is possible the custom lv_conf.h file I suspect you have in place will still cause problems, but I guess we can wait to see if everything starts working as expected with LVGL version 8.4.0 and worry about the custom lv_conf.h file only if there is a problem.

1 Like

Hi,
Ok, that was sort of a juicy reply, I'll take one thing at a time...

This result is a bit mysterious. Do you have a custom lv_conf.h file?

Gosh, I don't know any reason why I would have a custom lv_conf.h - I certainly haven't changed it. (Still looking for it to verify.)

First, some recent history with libraries: The compiler was having trouble finding libraries because - in an attempt to organize everything by project - I was changing the default sketch folder when I switched projects / started a new project.
SO. I abandoned that plan :- ( and did this:

  1. removed all libraries (using lib. manager)
  2. changed the default sketch folder location (and I'll never change it again)
  3. re-installed libraries (using lib. manager)
    That solved the file-not-found compiler problems (except for atomic.h, of course)

So the versions of things are whatever I would have gotten this week through lib. manager.

Unless you have applied the patches that are needed to use version 9.x of the "lvgl " library, I think the best solution will be to simply install version 8.4.0 of the library and use that until everything has full support for version 9.x of the "lvgl " library.

  1. With the exception of moving to IDE 2.3.2 about a month or so ago, I've not attempted to patch or upgrade anything, especially lvgl. I've particularly avoided lvgl ver. 9 because I'm trying to keep things as simple/clean/compatible as I possibly can.
  2. My lvgl is at version 8.3.11 somehow. (maybe i missed removing / re-installing this one?) I'll try 8.4.
  3. I don't find an lv_conf.h, but I do find \Arduino\libraries\lvgl lv_conf_template.h, attached.
  4. lv_conf_template.h (25.9 KB)

Moving to lvgl 8.4 did the trick - it compiles & runs -without lv_config.h. Maybe 8.4 reads lv_config_template.h, which is still there?? Doesn't seem kosher.

I found instructions in this post to edit the file, but I'm hesitant to make changes without understanding them. I get #'s 1 - 4 below; do I need to do #5?

  1. Go to the directory of the installed Arduino libraries
  2. Go to lvgl and copy lv_conf_template.h as lv_conf.h into the Arduino Libraries directory next to the lvgl library folder.
  3. Open lv_conf.h and change the first #if 0 to #if 1 to enable the content of the file
  4. Set the color depth of you display in LV_COLOR_DEPTH
  5. Set LV_TICK_CUSTOM 1

Again, many thanks for your help on this!

I only ask because it seems like there are some things in there I'll have to deal with, e.g., font size?

OK, then you probably don't have one. It is the sort of thing you would probably remember doing.

It is normally required to add a lv_conf.h file to the libraries subfolder of your Arduino sketchbook folder in order to use the lvgl library:

https://docs.lvgl.io/master/integration/framework/arduino.html#configure-lvgl

However, when you use the Arduino_H7_Video library along with the lvgl library in your sketch, this is not necessary because the Arduino_H7_Video library provides a configuration file made specifically for this hardware.

lv_conf_template.h is intended to be used as a starting point when making your own custom lv_conf.h file.

You don't need to do anything at all with the lv_conf.h file as long as you are using the Arduino_H7_Video library along with the lvgl library in your sketch and are satisfied with the default configuration provided by the Arduino_H7_Video library.

If you wanted to avoid using the Arduino_H7_Video library for some reason, or if you wanted to adjust the configuration then you would need to make your own lv_conf.h file. The file included in the Arduino_H7_Video library should serve as a good starting point. The file is on your computer here:

C:\Users\Patty\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\<Mbed OS Giga Boards version>\libraries\Arduino_H7_Video\src\lv_conf.h

(where <Mbed OS Giga Boards version> is the installed version of the Mbed OS Giga Boards platform, currently 4.1.1)

You can also see it here:

So just to close the loop on my part of this, ptillisch helped me get the squareline / lvgl example working, and I made a couple of modifications to it. Ultimately though, I abandoned the squareline / lvgl route to avoid complexity. I went back to basics (GigaDisplay_GFX / Adafruit_GFX) without any of the 3rd party graphics libraries or the code generators, and have been able to make some progress on a project. In case it helps anyone trying to get started with a giga display, I've attached a roundup of the relevant libraries I've noticed so far. There's no new information there, but maybe a start for taking notes as you wrangle the giga display stuff. Thanks again very much to ptillisch for all of his help getting some giga stuff squared away.
Giga Display library roundup.pdf (75.8 KB)

1 Like