Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #62

Open
ghost opened this issue Jan 25, 2021 · 4 comments
Open

Error #62

ghost opened this issue Jan 25, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2021

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

@FelipeLema
Copy link

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

@yarmiganosca
Copy link

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.

@errogaht
Copy link

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

@Omustardo
Copy link

Omustardo commented Oct 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants