From 4420f163df3d36eb11cb1237740c83f23802e9c9 Mon Sep 17 00:00:00 2001 From: Conor Dooley Date: Mon, 15 Aug 2022 00:11:15 +0100 Subject: [PATCH 1/2] stop using a git:// url for hidapi GitHub has deprecated the git protocol so the clone of hidapi during a build no longer works. Switch it to a HTTP url instead. Signed-off-by: Conor Dooley --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ef40276..5a7eb37 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ echo "Checking for git..." command -v git >/dev/null 2>&1 || { echo >&2 "Git is required and is not installed. Aborting."; exit 1; } echo "Fetching latest version of hidapi..." -git clone git://github.com/signal11/hidapi.git +git clone https://github.com/signal11/hidapi.git echo "Building hidapi..." make --directory=hidapi/linux -f Makefile-manual From 4cc3fb6c58d655905f38d9bfc727162c9da7775d Mon Sep 17 00:00:00 2001 From: Conor Dooley Date: Mon, 15 Aug 2022 00:13:17 +0100 Subject: [PATCH 2/2] update the package dependancies On Ubuntu 2204 (and possibly more systems) libudev-dev is required to build ykurcmd. Signed-off-by: Conor Dooley --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03545bc..50ca501 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,10 @@ We can install the hidapi.dll in the system or ensure that a copy of the file is Linux ----- -To build the application, and run it, `libusb-1.0` and `libusb-1.0-dev` libraries must be installed in you system. For example, in Debian based systems do the following in a terminal. +To build the application, and run it, `libudev-dev, `libusb-1.0` and `libusb-1.0-dev` libraries must be installed in you system. For example, in Debian based systems do the following in a terminal. ``` -$ sudo apt-get install libusb-1.0-0-dev +$ sudo apt-get install libusb-1.0-0-dev libudev-dev ``` This installed the development files. Now install the binary library.