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

335.10. kcalc-26.08.2

Scientific calculator — arbitrary precision, bases, bit editing, constants and statistics

26.08.2-1 · GPL-2.0-or-later · 0.9 SBU · 961.0 KiB, 12 files · 44_apps, 293 of 422 · ports/core/math/kcalc

Homepage: https://apps.kde.org/kcalc/

KCalc is KDE’s scientific calculator: a simple, scientific, statistics and numeral-system mode, binary bit editing, a constants menu and a result history. Its numbers come from its own knumber library over gmp, mpfr and mpc, so it computes to an arbitrary precision rather than in machine doubles. It is the calculator the desktop opens by default.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, kcrash, kcolorscheme, kconfig, kconfigwidgets, kguiaddons, ki18n, kiconthemes, knotifications, kxmlgui, kdoctools, gmp, mpfr, mpc, breeze-icons.

Required by (1): kde-gear-core.

Sources: kcalc-26.08.2.tar.xz (478.2 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kcalc'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kcalc.

Directories: /usr/share/doc/HTML/en/kcalc, /usr/share/licenses/kcalc.

knumber declares GMP, MPFR and MPC TYPE REQUIRED, so the configure stops without any of the three and no switch is needed.

The desktop entry’s icon is the theme name accessories-calculator, which breeze-icons draws. Upstream’s INSTALL_ICONS stays at its default, off: it would install KCalc’s own PNGs into hicolor under that generic name.

The install links the desktop entry into /usr/share/kglobalaccel, which is how the keyboard’s Calculator key starts KCalc. That link is read by kglobalacceld, a daemon of the Plasma session, not by anything this port installs.