The pkg-config output is:# pkg-config --modversion libinput Package libinput was not found in the pkg-config search path. Perhaps you should add the directory containing libinput.pc to the PKG_CONFIG_PATH environment variable No package libinput found

hmm ... so seems the compiler can't find the libinput.pc ... I'll set the PKG_CONFIG_PATH to /usr/local/lib ...