footswitch icon indicating copy to clipboard operation
footswitch copied to clipboard

Error

Open ghost opened this issue 3 years ago • 4 comments

dokav@dokav-MacBook-Pro footswitch % make make: pkg-config: Command not found make: pkg-config: Command not found cc -Wall -DOSX footswitch.c common.c debug.c -o footswitch footswitch.c:28:10: fatal error: 'hidapi.h' file not found #include <hidapi.h> ^~~~~~~~~~ 1 error generated. make: *** [footswitch] Error 1

ghost avatar Jan 25 '21 04:01 ghost

it seems that you need to install hidapi first. code won't compile without it

FelipeLema avatar Apr 11 '22 21:04 FelipeLema

I just ran into this issue on a new work laptop, and while I had installed the libhidapi-dev package on it (as indicated by the instructions), I hadn't installed the pkg-config package yet. Installing pkg-config fixed this for me. I do not believe the README needs to include the instructions "make sure you have pkg-config installed", since this is probably a rare bug (only happened on a machine I've had for less than a week and am still actively setting up), and because it's pretty easy to read the error message and think "oh hey it's telling me this pkg-config command isn't found, maybe I should install that." That said, if the maintainers want to be thorough in listing all the dependencies required, that wouldn't be a bad thing, I'm just not sure how many people are going to be running into this problem.

yarmiganosca avatar Jul 15 '22 18:07 yarmiganosca

sudo apt install pkg-config in Ubuntu 22.04 fixed for me

errogaht avatar Dec 14 '22 14:12 errogaht

I had the same error message on Debian bookworm. I installed both pkg-config and libusb-dev and then everything worked. From the comment above, perhaps only pkg-config was needed. I thought I'd comment in case it was actually needed and could help someone.

Omustardo avatar Oct 09 '23 02:10 Omustardo