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

335.7. kig-26.08.2

KDE interactive geometry — constructions, loci, macros and Python scripts

26.08.2-1 · GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.1-or-later AND BSD-3-Clause AND GFDL-1.2-or-later AND CC0-1.0 · 4.8 SBU · 4.4 MiB, 333 files · 44_apps, 290 of 422 · ports/core/math/kig

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

Kig is KDE Education’s interactive geometry program: points, lines, circles, conics and curves are constructed from one another, and dragging a point moves everything built on it. It draws loci, measures lengths and angles, records constructions as macros, and exports to SVG, LaTeX, Asymptote and XFig. The drawing area is a KPart, kigpart, so other KParts hosts can open Kig files as well; kig is the window around it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, kparts, kdoctools, ki18n, ktexteditor, kiconthemes, kconfigwidgets, karchive, kxmlgui, kcrash, kcoreaddons, boost, python3.

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

Sources: kig-26.08.2.tar.xz (3.1 MiB). Every step kpkg takes applies to this port.

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

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 \
	-D CMAKE_REQUIRE_FIND_PACKAGE_BoostPython=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kig, pykig.py.

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

A Python script object runs in an interpreter embedded in kigpart. Before starting it, the part loads the Python library by the file name the configure found (LIB_PYTHON, the real name of libpython3.*.so), so a python3 bump to a new minor version needs this port rebuilt, or scripting fails to start. pykig.py, installed to /usr/bin, turns a Python description of a figure into a Kig file and runs Kig on it.

The GeoGebra import is built only against Qt 5’s XmlPatterns, which Qt 6 does not have, so this Kig opens its own files and KGeo, KSeg, Cabri and Dr. Geo documents, but not GeoGebra’s. application/x-kig and application/x-kgeo, the types the entry claims, are defined in the kde6.xml MIME package of kcoreaddons.

KAboutData gives the window the app_id org.kde.kig, the name of upstream’s entry, from the edu.kde.org homepage it is constructed with.