I am trying to get the touch event from Raspberry Pi Touchscreen. I made it work using FT5406 driver in python and evtest in C. However, I want to write code for this in C++. I notice libevdev is very useful in C, but when I call it in C++, like
#include <libevdev/libevdev.h>
it will always give me
Fatal error: libevdev/libevdev.h: No such file or directory
I manually install libevdev and save it under the path of my code and provide complete path of that library, but the same thing happens.
I also try the method according to link, the problem is still here.
I already installed the corresponding package:
sudo apt-get install libevdev-dev
sudo apt-get install libudev-dev
Is anyone can help me out???