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

118.25. zxing-cpp-2.3.0

Barcode and QR code reading and writing — what `mutool barcode` is built on

2.3.0-1 · Apache-2.0 · 1.0 SBU · 1.6 MiB, 36 files · 41_system, 704 of 1047 · ports/core/image-libs/zxing-cpp

Homepage: https://github.com/zxing-cpp/zxing-cpp

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

mutool barcode: QR codes and barcodes read out of a page, and drawn.

Depends on: cmake.

Required by (4): kitinerary, libreoffice, mupdf, prison.

Sources: zxing-cpp-2.3.0.tar.gz (984.9 KiB). Every step kpkg takes applies to this port.

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

build.sh:

cmake -B build -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DZXING_READERS=ON \
	-DZXING_WRITERS=OLD \
	-DZXING_USE_BUNDLED_ZINT=OFF \
	-DZXING_EXPERIMENTAL_API=OFF \
	-DZXING_C_API=OFF \
	-DZXING_DEPENDENCIES=LOCAL \
	-DZXING_EXAMPLES=OFF \
	-DZXING_UNIT_TESTS=OFF \
	-DZXING_BLACKBOX_TESTS=OFF \
	-DZXING_PYTHON_MODULE=OFF
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libZXing.so.

Directories: /usr/include/ZXing, /usr/lib/cmake/ZXing, /usr/share/licenses/zxing-cpp.