Not sure if its valid but i tried pasting the src folder (from inside the lvgl folder) and the lvgl.h and lv_conf.h files inside the main and ui folders. The “can not locate the file lvgl.h” error stopped but still show some errors when i try to build (will paste them below).
C:/Users/welli/sunton-teste-2/main/main.c: In function 'app_main':
C:/Users/welli/sunton-teste-2/main/main.c:356:47: error: implicit declaration of function 'ESP_LCD_TOUCH_IO_I2C_GT911_CONFIG' [-Werror=implicit-function-declaration]
356 | esp_lcd_panel_io_i2c_config_t io_config = ESP_LCD_TOUCH_IO_I2C_GT911_CONFIG();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/welli/sunton-teste-2/main/main.c:356:47: error: invalid initializer
C:/Users/welli/sunton-teste-2/main/main.c:29:23: error: expected identifier before numeric constant
29 | #define TOUCH_RST_PIN 38
| ^~
C:/Users/welli/sunton-teste-2/main/main.c:379:10: note: in expansion of macro 'TOUCH_RST_PIN'
379 | .TOUCH_RST_PIN = TOUCH_RST_PIN,
| ^~~~~~~~~~~~~
C:/Users/welli/sunton-teste-2/main/main.c:380:9: error: expected '}' before '.' token
380 | .int_gpio_num = TOUCH_INT_PIN,
| ^
C:/Users/welli/sunton-teste-2/main/main.c:376:37: note: to match this '{'
376 | esp_lcd_touch_config_t tp_cfg = {
| ^
In file included from C:/Users/welli/esp/esp-idf/components/esp_hw_support/include/esp_intr_alloc.h:11,
from C:/Users/welli/esp/esp-idf/components/esp_hw_support/include/esp_cpu.h:20,
from C:/Users/welli/esp/esp-idf/components/esp_hw_support/include/spinlock.h:11,
from C:/Users/welli/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:74,
from C:/Users/welli/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:59,
from C:/Users/welli/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:71,
from C:/Users/welli/sunton-teste-2/main/main.c:4:
C:/Users/welli/sunton-teste-2/main/main.c:393:21: error: implicit declaration of function 'esp_lcd_touch_new_i2c_gt911' [-Werror=implicit-function-declaration]
393 | ESP_ERROR_CHECK(esp_lcd_touch_new_i2c_gt911(io_handle, &tp_cfg, &tp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/welli/esp/esp-idf/components/esp_common/include/esp_err.h:117:30: note: in definition of macro 'ESP_ERROR_CHECK'
117 | esp_err_t err_rc_ = (x); \
| ^
C:/Users/welli/sunton-teste-2/main/main.c:400:26: error: implicit declaration of function 'read'; did you mean 'fread'? [-Werror=implicit-function-declaration]
400 | indev_drv->read_cb = read();
| ^~~~
| fread
C:/Users/welli/sunton-teste-2/main/main.c:400:24: warning: assignment to 'void (*)(struct _lv_indev_drv_t *, lv_indev_data_t *)' from 'int' makes pointer from integer without a cast [-Wint-conversion]
400 | indev_drv->read_cb = read();
| ^
cc1.exe: some warnings being treated as errors
[21/170] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/ui/src/draw/nxp/vglite/lv_vglite_utils.c.objninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the C:\Users\welli\sunton-teste-2\build\log\idf_py_stderr_output_27296 and C:\Users\welli\sunton-teste-2\build\log\idf_py_stdout_output_27296
