SQL 1.42 and LVGL 9.1 Error 'lv_disp_draw_buf_t' does not name a type

I want to run SQL 1.42 and LVG: 9.1

Running SQL 1.42 and project settings arduino 2.0.0 and lvgl librare 9.1 with the library 9.1 loaded get the error Error ‘lv_disp_draw_buf_t’ does not name a type
If I use the same SQL project but set Arduino to 1.12 and sql to 8.3.11 and load that library it compiles and runs,

C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:61:8: error: ‘lv_disp_draw_buf_t’ does not name a type; did you mean ‘lv_draw_buf_t’?
61 | static lv_disp_draw_buf_t draw_buf;
| ^~~~~~~~~~~~~~~~~~
| lv_draw_buf_t
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:6: error: variable or field ‘my_disp_flush’ declared void
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )
| ^~~~~~~~~~~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:21: error: ‘lv_disp_drv_t’ was not declared in this scope; did you mean ‘lv_fs_drv_t’?
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )
| ^~~~~~~~~~~~~
| lv_fs_drv_t
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:36: error: ‘disp’ was not declared in this scope
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )
| ^~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:42: error: expected primary-expression before ‘const’
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t color_p )
| ^~~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:76: error: expected primary-expression before '
’ token
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p )
| ^
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:66:77: error: ‘color_p’ was not declared in this scope
66 | void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t color_p )
| ^~~~~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:81:6: error: variable or field ‘my_touchpad_read’ declared void
81 | void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
| ^~~~~~~~~~~~~~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:81:24: error: ‘lv_indev_drv_t’ was not declared in this scope; did you mean ‘lv_indev_data_t’?
81 | void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
| ^~~~~~~~~~~~~~
| lv_indev_data_t
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:81:41: error: ‘indev_driver’ was not declared in this scope
81 | void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
| ^~~~~~~~~~~~
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:81:71: error: expected primary-expression before '
’ token
81 | void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
| ^
C:\Users\Roberta\Desktop\elecrow_lesson_05_lvgl_demo\elecrow_lesson_05_lvgl_demo.ino:81:73: error: ‘data’ was not declared in this scope
81 | void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
| ^~~~

Others

1.42 - SquareLine Studio version:
Windows 10 - Operating system:
ESP32 Wroom DA with spi 2.8 inch display - Target hardware:

The log above shows an Elecrow lesson project, not an export of the original SquareLine board-template. The ‘lv_disp_draw_buf_t’ coming with that Elecrow example code is an LVGL-8.3.11 type which is no longer present in LVGL9, that’s why you get the errors when you try to merge LVGL-9 with that code. We created LVGL-9 board-templates for select Elecrow boards, available in SquareLine Studio, they should work for you the same for you as it worked for us, if you have one of those boards.