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

162.12. libiio-0.26

Linux Industrial I/O client library — ADALM-Pluto and other ADI SDRs over USB and the network, for gr-iio and SDRangel

0.26-1 · LGPL-2.1-or-later AND GPL-2.0-or-later · 0.2 SBU · 600.7 KiB, 22 files · 41_system, 907 of 1047 · ports/core/sdr-hw/libiio

Homepage: https://wiki.analog.com/resources/tools-software/linux-software/libiio

Depends on: cmake, ninja, pkgconf, bash, libxml2, libusb, libserialport, avahi.

Required by (6): gnuradio, libad9361, satdump, sdrangel, sdrpp, urh.

Sources: libiio-0.26.tar.gz (507.0 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 libiio'

build.sh:

cmake -B build -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DWITH_LOCAL_BACKEND=ON \
	-DWITH_USB_BACKEND=ON \
	-DWITH_NETWORK_BACKEND=ON \
	-DHAVE_DNS_SD=ON \
	-DWITH_XML_BACKEND=ON \
	-DWITH_SERIAL_BACKEND=ON \
	-DWITH_IIOD=OFF \
	-DWITH_TESTS=ON \
	-DWITH_MAN=ON \
	-DWITH_DOC=OFF \
	-DWITH_EXAMPLES=OFF \
	-DPYTHON_BINDINGS=OFF \
	-DCSHARP_BINDINGS=OFF \
	-DCPP_BINDINGS=OFF \
	-DWITH_ZSTD=OFF \
	-DINSTALL_UDEV_RULE=OFF \
	-DCOMPILE_WARNING_AS_ERROR=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

mv "$PKG"/usr/share/man/man1/man/*.1 "$PKG"/usr/share/man/man1/
mv "$PKG"/usr/share/man/man3/man/*.3 "$PKG"/usr/share/man/man3/
rmdir "$PKG"/usr/share/man/man1/man "$PKG"/usr/share/man/man3/man

test -e "$PKG"/usr/lib/pkgconfig/libiio.pc
test -x "$PKG"/usr/bin/iio_info
test -e "$PKG"/usr/share/man/man1/iio_info.1

Programs: iio_attr, iio_genxml, iio_info, iio_readdev, iio_reg, iio_stresstest, iio_writedev.

Libraries: libiio.so.

Directories: /usr/share/licenses/libiio.