Problem trying out the tutorial for raspberry pi

Description

Hello,

I’m trying to test the demo described here here.
Sadly i get some errors while compile the script.
I am sorry if this questions has been asked before, but i cannot seem to find a clear answer that i understand. I am not quite new at linux and all the layers one has to go trough to control GPIO’s. or SPI and I2C busses.

the output from the terminal while compiling the script is embedded at the end of the post.
Is this because of some incompatibility between versions? or is there a problem with includes?
Any help would be welcome.

What MCU/Processor/Board and compiler are you using?

Raspberry Pi compute module 4.

manu@raspberrypi32GB:/ $ uname -a
Linux raspberrypi32GB 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

What do you want to achieve?

my step 1: able to write something to a frame buffer on a raspberry pi.
end goal: use a ST7789V TFT with GT911 touchpad, to create a GUI on a CM4.

What have you tried so far?

Tried compiling the code on some different versions of linux for raspberry pi.

Code to reproduce

Add the relevant code snippets here.

The code block(s) should be between ```c and ``` tags:

manu@raspberrypi32GB:~/LVGL $ make
cc "-I/home/manu/LVGL/lvgl"   -c -o test2.o test2.c
test2.c: In function ‘main’:
test2.c:11:5: warning: implicit declaration of function ‘fbdev_init’; did you mean ‘lv_init’? [-Wimplicit-function-declaration]
   11 |     fbdev_init();
      |     ^~~~~~~~~~
      |     lv_init
test2.c:14:27: error: ‘DISP_BUF_SIZE’ undeclared (first use in this function)
   14 |     static lv_color_t buf[DISP_BUF_SIZE];
      |                           ^~~~~~~~~~~~~
test2.c:14:27: note: each undeclared identifier is reported only once for each function it appears in
test2.c:17:12: error: unknown type name ‘lv_disp_draw_buf_t’
   17 |     static lv_disp_draw_buf_t disp_buf;
      |            ^~~~~~~~~~~~~~~~~~
test2.c:18:5: warning: implicit declaration of function ‘lv_disp_draw_buf_init’; did you mean ‘lv_draw_buf_init’? [-Wimplicit-function-declaration]
   18 |     lv_disp_draw_buf_init(&disp_buf, buf, NULL, DISP_BUF_SIZE);
      |     ^~~~~~~~~~~~~~~~~~~~~
      |     lv_draw_buf_init
test2.c:21:12: error: unknown type name ‘lv_disp_drv_t’
   21 |     static lv_disp_drv_t disp_drv;
      |            ^~~~~~~~~~~~~
test2.c:22:5: warning: implicit declaration of function ‘lv_disp_drv_init’; did you mean ‘lv_fs_drv_init’? [-Wimplicit-function-declaration]
   22 |     lv_disp_drv_init(&disp_drv);
      |     ^~~~~~~~~~~~~~~~
      |     lv_fs_drv_init
test2.c:23:13: error: request for member ‘draw_buf’ in something not a structure or union
   23 |     disp_drv.draw_buf   = &disp_buf;
      |             ^
test2.c:24:13: error: request for member ‘flush_cb’ in something not a structure or union
   24 |     disp_drv.flush_cb   = fbdev_flush;
      |             ^
test2.c:24:27: error: ‘fbdev_flush’ undeclared (first use in this function)
   24 |     disp_drv.flush_cb   = fbdev_flush;
      |                           ^~~~~~~~~~~
test2.c:25:13: error: request for member ‘hor_res’ in something not a structure or union
   25 |     disp_drv.hor_res    = 320;
      |             ^
test2.c:26:13: error: request for member ‘ver_res’ in something not a structure or union
   26 |     disp_drv.ver_res    = 240;
      |             ^
test2.c:27:5: warning: implicit declaration of function ‘lv_disp_drv_register’; did you mean ‘lv_fs_drv_register’? [-Wimplicit-function-declaration]
   27 |     lv_disp_drv_register(&disp_drv);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     lv_fs_drv_register
make: *** [<builtin>: test2.o] Error 1

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.