What is the source of this error?

Hello. If I do "//#define USE_UI", the code is loaded, but if I don't keep it as a comment, the code is not loaded. Many times I was able to design a screen using squarline and transfer it to a 7 inch screen. I exported it in the same way and transferred the files. Can anyone understand what the problem is from the error below?

Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), Kart:"ESP32S3 Dev Module, OPI PSRAM, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Huge APP (3MB No OTA/1MB SPIFFS), 240MHz (WiFi), 921600, None"


Library Wire has been declared precompiled:


Using precompiled library in C:\Users\merme\Documents\Arduino\libraries\Wire\src\esp32s3


Library SPI has been declared precompiled:


Using precompiled library in C:\Users\merme\Documents\Arduino\libraries\SPI\src\esp32s3


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\core\lv_obj.c: In function 'lv_init':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\core\lv_obj.c:143:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   char * txt = "Á";


         ^~~~


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c: In function 'lv_example_menu_3':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:20:55: warning: passing argument 2 of 'lv_menu_page_create' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   lv_obj_t * sub_1_page = lv_menu_page_create(menu, "Page 1");


                            ^~~~~~~~


In file included from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/lv_widgets.h:23,


         from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/lv_extra.h:21,


         from c:\users\merme\documents\arduino\libraries\lvgl\lvgl.h:69,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\lvgl.h:17,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\examples\lv_examples.h:16,


         from C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:1:


c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/menu/lv_menu.h:105:12: note: expected 'char *' but argument is of type 'const char *'


 lv_obj_t * lv_menu_page_create(lv_obj_t * parent, char * title);


      ^~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:26:55: warning: passing argument 2 of 'lv_menu_page_create' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   lv_obj_t * sub_2_page = lv_menu_page_create(menu, "Page 2");


                            ^~~~~~~~


In file included from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/lv_widgets.h:23,


         from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/lv_extra.h:21,


         from c:\users\merme\documents\arduino\libraries\lvgl\lvgl.h:69,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\lvgl.h:17,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\examples\lv_examples.h:16,


         from C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:1:


c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/menu/lv_menu.h:105:12: note: expected 'char *' but argument is of type 'const char *'


 lv_obj_t * lv_menu_page_create(lv_obj_t * parent, char * title);


      ^~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:32:55: warning: passing argument 2 of 'lv_menu_page_create' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   lv_obj_t * sub_3_page = lv_menu_page_create(menu, "Page 3");


                            ^~~~~~~~


In file included from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/lv_widgets.h:23,


         from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/lv_extra.h:21,


         from c:\users\merme\documents\arduino\libraries\lvgl\lvgl.h:69,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\lvgl.h:17,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\examples\lv_examples.h:16,


         from C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_3.c:1:


c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/menu/lv_menu.h:105:12: note: expected 'char *' but argument is of type 'const char *'


 lv_obj_t * lv_menu_page_create(lv_obj_t * parent, char * title);


      ^~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_5.c: In function 'lv_example_menu_5':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_5.c:91:43: warning: passing argument 2 of 'lv_menu_page_create' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   root_page = lv_menu_page_create(menu, "Settings");


                      ^~~~~~~~~~


In file included from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/lv_widgets.h:23,


         from c:\users\merme\documents\arduino\libraries\lvgl\src/extra/lv_extra.h:21,


         from c:\users\merme\documents\arduino\libraries\lvgl\lvgl.h:69,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\lvgl.h:17,


         from c:\users\merme\documents\arduino\libraries\lvgl\src\examples\lv_examples.h:16,


         from C:\Users\merme\Documents\Arduino\libraries\lvgl\src\examples\widgets\menu\lv_example_menu_5.c:1:


c:\users\merme\documents\arduino\libraries\lvgl\src/extra/widgets/menu/lv_menu.h:105:12: note: expected 'char *' but argument is of type 'const char *'


 lv_obj_t * lv_menu_page_create(lv_obj_t * parent, char * title);


      ^~~~~~~~~~~~~~~~~~~


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c: In function 'lv_tabview_add_tab':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c:89:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


     new_map[tab_id] = "";


             ^


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c:98:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


       new_map[1] = "";


            ^


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c:101:37: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


       new_map[tab_id * 2 - 3] = "\n";


                   ^


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c:103:37: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


       new_map[tab_id * 2 - 1] = "";


                   ^


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c: In function 'lv_tabview_constructor':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\extra\widgets\tabview\lv_tabview.c:228:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   tabview->map[0] = "";


           ^


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\widgets\lv_checkbox.c: In function 'lv_checkbox_constructor':


C:\Users\merme\Documents\Arduino\libraries\lvgl\src\widgets\lv_checkbox.c:125:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]


   cb->txt = "Check box";


       ^


Library Arduino_GFX-master has been declared precompiled:


Using precompiled library in C:\Users\merme\Documents\Arduino\libraries\Arduino_GFX-master\src\esp32s3


c:/users/merme/documents/arduinodata/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: sketch\objs.a(ui.c.o):(.literal.ui_init+0x0): undefined reference to `LV_EVENT_GET_COMP_CHILD'


collect2.exe: error: ld returned 1 exit status


"SPI.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\SPI


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\SPI


"Wire.h" için birden fazla library bulundu


Kullanılıyor: C:\Users\merme\Documents\Arduino\libraries\Wire


Kullanılmıyor: C:\Users\merme\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.3\libraries\Wire


exit status 1


ESP32S3 Dev Module kartı için derleme hatası.




This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

Comments

  • Hello, I'm sorry to have kept you waiting.

    This error is usually caused by the version of the compiler and lvgl library conflict, please try to update the esp32 development version to see if it can be resolved.

Sign In or Register to comment.