Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

95.8. hidapi-0.15.0

HID device access — CMSIS-DAP debuggers and instruments speak it

0.15.0-1 · GPL-3.0-only OR BSD-3-Clause · 0.1 SBU · 114.4 KiB, 13 files · 41_system, 431 of 1047 · ports/core/hardware/hidapi

Homepage: https://github.com/libusb/hidapi

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/hardware.txt:

What the flashing, SDR and instrument tools link against.

Depends on: eudev, cmake.

Required by (9): ardour, avrdude, gr-funcube, libsigrok, openfpgaloader, openocd, openscad, prusaslicer, sdrangel.

Sources: hidapi-0.15.0.tar.gz (355.3 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install hidapi'

build.sh:

mkdir -p build && cd build
cmake .. \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DHIDAPI_WITH_LIBUSB=OFF \
	-DHIDAPI_WITH_HIDRAW=ON \
	-DHIDAPI_BUILD_HIDTEST=OFF
make
make DESTDIR=$PKG install

Libraries: libhidapi-hidraw.so.

Directories: /usr/include/hidapi, /usr/lib/cmake/hidapi, /usr/share/licenses/hidapi.