SDL missing while cross compile


I have LVGL emulator project in Eclipse in Ubuntu 20.04. It builds fine. I’m trying cross compile it for Raspberry Pi. But after setting cross compiler complains regarding missing SDL header:

Invoking: Cross GCC Compiler
arm-none-linux-gnueabihf-gcc -I"/home/a/cpp_projects/pc_simulator_sdl_eclipse" -O0 -g3 -Wall -c -fmessage-length=0 -Wall -Wmaybe-uninitialized -MMD -MP -MF"lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.d" -MT"lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.o" -o "lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.o" "../lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.c"
In file included from /home/a/cpp_projects/pc_simulator_sdl_eclipse/lv_drivers/indev/keyboard.h:18,
                 from ../lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.c:12:
/home/a/cpp_projects/pc_simulator_sdl_eclipse/lv_drv_conf.h:101:39: fatal error: SDL2/SDL.h: No such file or directory
  101 | #  define MONITOR_SDL_INCLUDE_PATH    <SDL2/SDL.h>
      |                                       ^
compilation terminated.
make: *** [lv_examples/src/lv_demo_keypad_encoder/ lv_examples/src/lv_demo_keypad_encoder/lv_demo_keypad_encoder.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

How to fix that problem?

It’s probably easier to compile on the Raspberry Pi, otherwise you will have to figure out how to cross compile SDL and install it in a place the cross compiler will find it.