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

164.2. hamlib-4.7.2

Radio and rotator control library

4.7.2-1 · LGPL-2.1-or-later AND GPL-2.0-or-later · 2.3 SBU · 14.5 MiB, 63 files · 41_system, 631 of 1047 · ports/core/hamradio/hamlib

Homepage: https://hamlib.github.io/

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

One control protocol for 200 radios — the program the CP210x/FTDI udev rules exist for on the radio side, as picocom is on the console side.

Hamlib is the common control library for amateur radio equipment: one API, and one command-line program per kind of device (rigctl for radios, rotctl for antenna rotators, ampctl for amplifiers), over backends for a few hundred models. The radio-control features of wsjtx, fldigi, gpredict, direwolf and the other SDR and digital-mode ports go through it. A radio is usually on a USB serial adapter, which the dialout group and the FTDI, Prolific, CP210x and CH341 rules in /etc/udev/rules.d/70-kdos-serial.rules already give a user access to; hamlib is the program those rules are there for on the radio side.

The C library and its programs are the whole package: every language binding is off.

Depends on: autoconf, automake, libtool, pkgconf, libusb, readline, libxml2.

Required by (11): cubicsdr, direwolf, fldigi, freedv-gui, gpredict, js8call, klog, qsstv, sdrangel, tlf, wsjtx.

Sources: hamlib-4.7.2.tar.gz (3.0 MiB). Every step kpkg takes applies to this port.

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

build.sh:

export CFLAGS="$CFLAGS -include sys/types.h"

ac_cv_func_select=yes \
./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--disable-static \
	--without-cxx-binding \
	--without-python-binding \
	--without-tcl-binding \
	--without-perl-binding \
	--without-lua-binding \
	--with-libusb \
	--with-readline \
	--with-xml-support \
	--without-indi \
	--disable-html-matrix \
	--disable-pytest
grep -q '^#define HAVE_SELECT 1' include/hamlib/config.h
make
make DESTDIR=$PKG install

Programs: ampctl, ampctld, rigctl, rigctlcom, rigctld, rigctlsync, rigctltcp, rigmem, rigsmtr, rigswr, rigtestlibusb, rigtestmcast, rigtestmcastrx, rotctl, rotctld.

Libraries: libhamlib.so.

Directories: /usr/include/hamlib, /usr/share/doc/hamlib, /usr/share/licenses/hamlib.