Libinput.h not found when enable touchscreen


Trying to build lv_port_linux_frame_buffer with enabled touchscreen :


 * Touchscreen as libinput interface (for Linux based systems)
#  define USE_LIBINPUT           1

Got error while building:

…/lv_drivers/indev/libinput.c:19:10: fatal error: libinput.h: No such file or directory
19 | #include <libinput.h>
| ^~~~~~~~~~~~

There is no such file in LVGL

How to fix this problem?

Try using the evdev driver instead of libinput.

You may also use evtest to test the coordinates of evdev.

1 Like

Great suggestion.