@altibzz were the libraries that you tried compiled for your architecure? as i understand it - and i might be not quite right! - the libraries have to either be pre-compiled for your cpu/os or you compile them yourself. at least that's the case with some objects, i think.
as for [hid] on raspberry (3b+, raspbian stretch), i couldn't find anything on deken, but i think "sudo apt-get install pd-hid" did the trick for me.
it works with my wireless keyboard. i quickly tried an example-patch to find out whether the window's focus has something to do with pd's receiving of the data. with the gui active, i could switch windows and it still worked, but starting Pd with the -nogui flag, it didn't work, because - it seemed that - the keyboard inputs where only interpreted (and thus 'intercepted'?) by the terminal (the terminal's ascii cursor was moved by typing) and not Pd anymore. but this was just a quick and dirty test!
This is my custom signature.