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

337.4. marble-26.08.2

Marble: virtual globe and world atlas, with offline Atlas, satellite and OpenStreetMap vector views

Version 26.08.2, release 1
Shelf gis — GIS, maps, projections, GPS, navigation and location
Phase 44_apps (Applications), 214 of 422 in build order
Licence LGPL-2.1-or-later AND GPL-3.0-or-later
Homepage https://marble.kde.org/
Build time 40.1 SBU
Installed size 48.1 MiB in 1617 files
Recipe ports/core/gis/marble/kpkgbuild

About

Marble is KDE’s virtual globe and world atlas: the Earth, the Moon and other bodies in Atlas, satellite and OpenStreetMap views, with search, routing and position tracking. The port builds the KDE application marble and two programs beside it that share its library: marble-behaim, the Behaim globe of 1492, and marble-maps, a Kirigami map-and-navigation front end.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, librsvg, qt6-qtbase, qt6-qtsvg, qt6-qtdeclarative, qt6-qt5compat, qt6-qtwebengine, qt6-qtwebchannel, qt6-qtpositioning, qt6-qtserialport, kcoreaddons, ki18n, kconfig, kcrash, kparts, kio, kdoctools, kirigami, kirigami-addons, libplasma, krunner, protobuf, abseil-cpp, zlib, gpsd, shapelib, shared-mime-info, hicolor-icon-theme.

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

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

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

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/gis/marble.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/gis/marble
echo 'e336e4dd45612700a492420ae9e8d46a4847dfc4142fce19f89126d979483064  marble-26.08.2.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/marble
SRC=$SRC_ROOT/marble-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf marble-26.08.2.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

cmake -S . -B build -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DKDE_INSTALL_LIBDIR=lib \
	-DCMAKE_INSTALL_SYSCONFDIR=/etc \
	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-DBUILD_TESTING=OFF \
	-DKF_SKIP_PO_PROCESSING=ON \
	-DMOBILE=OFF \
	-DBUILD_TOUCH=OFF \
	-DBUILD_QT_AND_KDE=OFF \
	-DBUILD_MARBLE_APPS=ON \
	-DBUILD_MARBLE_TOOLS=OFF \
	-DBUILD_MARBLE_EXAMPLES=OFF \
	-DBUILD_WITH_DBUS=ON \
	-DWITH_DESIGNER_PLUGIN=OFF \
	-DWITH_libgps=ON \
	-DWITH_libshp=ON \
	-DWITH_ZLIB=ON \
	-DWITH_Phonon4Qt6=OFF \
	-DWITH_Plasma=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_Plasma=ON \
	-DWITH_libwlocate=OFF \
	-Wno-dev
for v in Protobuf_PROTOC_EXECUTABLE LIBGPS_LIBRARIES LIBSHP_LIBRARIES KF6Runner_DIR; do
	grep -Eq "^$v:[A-Z]+=/" build/CMakeCache.txt ||
		{ echo "marble: $v not found at configure" >&2; exit 1; }
done
cmake --build build
DESTDIR=$PKG cmake --install build
[ -f "$PKG/usr/share/icons/hicolor/48x48/apps/marble.png" ] ||
	{ echo "marble: the hicolor PNG icon was not installed" >&2; exit 1; }

for icon in org.kde.marble.behaim org.kde.marble.maps; do
	svg="$PKG/usr/share/icons/hicolor/scalable/apps/$icon.svg"
	[ -f "$svg" ] || { echo "marble: $icon.svg was not installed" >&2; exit 1; }
	for s in 48 128 256; do
		install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
		rsvg-convert -w $s -h $s "$svg" \
			-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/$icon.png"
	done
done

cat > "$PKG/usr/share/applications/org.kde.marble.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDE Marble
GenericName=Virtual Globe
Comment=Virtual globe and world atlas
TryExec=marble
Exec=marble %U
Icon=marble
Terminal=false
StartupWMClass=org.kde.marble
X-DocPath=marble/index.html
MimeType=x-scheme-handler/geo;x-scheme-handler/worldwind;
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=globe;atlas;map;maps;earth;geography;osm;openstreetmap;marble;
DESKTOP
cat > "$PKG/usr/share/applications/org.kde.marble.behaim.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Marble Behaim
GenericName=Historic Globe
Comment=The Behaim globe of 1492, the oldest surviving terrestrial globe
TryExec=marble-behaim
Exec=marble-behaim
Icon=org.kde.marble.behaim
Terminal=false
StartupWMClass=org.kde.marble.behaim
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=globe;behaim;history;map;marble;
DESKTOP
cat > "$PKG/usr/share/applications/org.kde.marble.maps.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Marble Maps
GenericName=OpenStreetMap Navigation
Comment=Find your way on OpenStreetMap
TryExec=marble-maps
Exec=marble-maps %F
Icon=org.kde.marble.maps
Terminal=false
StartupWMClass=org.kde.marble.maps
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=map;maps;navigation;route;osm;openstreetmap;marble;
DESKTOP
chmod 644 "$PKG"/usr/share/applications/org.kde.marble*.desktop

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/marble, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf marble-26.08.2-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/marble, and runs the triggers its paths call for.

Contents

Installed programs: marble, marble-behaim, marble-maps.

Installed libraries: libastro.so, libmarblewidget-qt6.so.

Installed directories: /usr/include/astro, /usr/include/marble, /usr/lib/cmake/Astro, /usr/lib/cmake/Marble, /usr/lib/marble, /usr/lib/qt6/qml/org/kde/marble, /usr/share/doc/HTML/en/marble, /usr/share/kxmlgui5/marble, /usr/share/licenses/marble, /usr/share/marble, /usr/share/plasma/plasmoids/org.kde.plasma.worldclock, /usr/share/plasma/wallpapers/org.kde.plasma.worldmap.

Notes

The KF6Runner_DIR check stands for the KRunner plugin, which looks up places and coordinates typed into KRunner and opens them in Marble. src/plasmarunner builds it only when krunner is found, through the same quiet macro as the options above, so no CMAKE_REQUIRE_FIND_PACKAGE_ switch reaches it.

The protoc check stands for the OpenStreetMap PBF reader, which Marble builds only when protobuf is found, with abseil-cpp beside it in depends.

Behaim and Marble Maps install their icons only as SVG. build.sh renders each with rsvg-convert to 48, 128 and 256 pixel hicolor PNGs under the same name. The [ -f … ] check before that fails the build if the main program’s own PNG icon is missing.

All three of upstream’s desktop entries are replaced by ones that add StartupWMClass. KAboutData gives each program its desktop file name, and so its Wayland app_id: org.kde.marble for the globe, and org.kde.marble.behaim and org.kde.marble.maps for the two that set theirs explicitly. The globe’s entry keeps the geo: and worldwind: link handlers.