milgner / k290-fnkeyctl

Configures the behaviour of the F-keys on the Logitech K290
MIT License
222 stars 30 forks source link

libusb-1.0 not found #24

Closed aromot closed 5 years ago

aromot commented 5 years ago

Hello, system: Linux s7 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I've installed libusb. apt list --installed | grep libusb:

libusb-1.0-0/bionic,now 2:1.0.21-2 amd64  [installé]
libusbmuxd4/bionic,now 1.1.0~git20171206.c724e70f-0.1 amd64  [installé]

When running build.sh, this is what I get:

Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
k290_fnkeyctl.cpp:6:10: fatal error: libusb-1.0/libusb.h: Aucun fichier ou dossier de ce type
 #include <libusb-1.0/libusb.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

How to get it fixed (I don't know where libusb-1.0.pc is)?

aromot commented 5 years ago

Ok, I fixed it doing:

sudo apt-get install libusb-1.0.0-dev