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

274.6. kosmindoormap-26.08.2

OpenStreetMap indoor map renderer for stations and airports, with QML components

26.08.2-1 · LGPL-2.0-or-later AND LGPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND MIT AND CC0-1.0 AND ODbL-1.0 · 5.4 SBU · 4.0 MiB, 132 files · 43_toolkits, 155 of 344 · ports/core/gis/kosmindoormap

Homepage: https://invent.kde.org/libraries/kosmindoormap

KOSMIndoorMap draws the inside of a building from OpenStreetMap data: the floors of a railway station or an airport, platforms, shops, toilets, lifts and the paths between them. It fetches and caches OSM tiles, styles them with MapCSS, renders them with QPainter, and offers the result to QML as org.kde.kosmindoormap, with an element-information view and opening hours from kopeninghours. Itinerary and Kongress show station and venue maps through it.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, zlib, flex, bison, ki18n, kcoreaddons, kservice, kcontacts, kirigami, kirigami-addons, kopeninghours, kpublictransport.

Required by (2): itinerary, kongress.

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

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kosmindoormap'

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 USE_KPUBLICTRANSPORT=ON \
	-D BUILD_STANDALONE_APP=OFF \
	-D CMAKE_DISABLE_FIND_PACKAGE_recastnavigation=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_Protobuf=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKOSM.so, libKOSMIndoorMap.so, libKOSMIndoorRouting.so.

Directories: /usr/include/KOSM, /usr/include/KOSMIndoorMap, /usr/include/KOSMIndoorRouting, /usr/include/kosm, /usr/include/kosmindoormap, /usr/include/kosmindoorrouting, /usr/lib/cmake/KOSMIndoorMap, /usr/lib/qt6/qml/org/kde/kosmindoormap, /usr/lib/qt6/qml/org/kde/kosmindoorrouting, /usr/lib/qt6/qml/org/kde/osm, /usr/share/licenses/kosmindoormap.

flex and bison generate the MapCSS parser at build time; the configure requires both. It also requires kopeninghours, kirigami-addons 1.6.0 or newer and Qt’s private GUI headers, which qt6-qtbase installs.

The “edit in OSM editor” action looks up JOSM’s desktop entry through KService. Upstream finds KService and KCoreAddons with OPTIONAL_COMPONENTS, which no switch can turn into a requirement, so kservice and kcoreaddons are in depends, which puts both in the build root before this port configures. Nothing in build.sh checks that they were found.

Map data comes from maps.kde.org tile servers at run time, fetched only when an application shows a map. The QML views import Kirigami, Kirigami Addons, org.kde.kpublictransport and org.kde.contacts (an address in the element information), which is why kirigami and kcontacts are in depends.