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

254.2. qt6-qtshadertools-6.12.0

Qt 6 shader tools — qsb, the GLSL/HLSL/MSL/SPIR-V baker Qt Quick and Qt RHI shaders are compiled with

6.12.0-1 · (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only WITH Qt-GPL-exception-1.0 AND (Apache-2.0 OR MIT) · 3.1 SBU · 7.7 MiB, 67 files · 43_toolkits, 10 of 344 · ports/core/qt6/qt6-qtshadertools

Homepage: https://www.qt.io/

Why it is in KDOS. The comment above the 27 ports from qt6-qtbase to qt6-qtmqtt in script/phases/43_toolkits/packages.d/qt6.txt:

Built with the Wayland and xcb platforms. QT_QPA_PLATFORM is wayland;xcb, so a Qt application falls back to Xwayland only when the Wayland plugin cannot start, and QT_QPA_PLATFORMTHEME=kde makes it read its palette, fonts and icons from the kdeglobals kdos theme writes.

Qt Shader Tools provides qsb, the Qt Shader Baker, and the QtShaderTools library behind it. It compiles a Vulkan-style GLSL shader to SPIR-V and translates it to the GLSL, HLSL and Metal variants Qt’s rendering hardware interface may need, packing them into one .qsb file. Qt Quick, Qt Multimedia and Qt 5 Compat compile their shaders with it at build time, so it is a build dependency of those modules.

Depends on: cmake, ninja, pkgconf, qt6-qtbase.

Required by (17): audacity, gst-plugins-good, haruna, kdeclarative, kirigami, kquickcharts, kquickimageeditor, musescore, plasma-desktop, plasma-workspace, qt-creator, qt6-qt3d, qt6-qt5compat, qt6-qtdeclarative, qt6-qtmultimedia, qt6-qtquick3d, union.

Sources: qt6-qtshadertools-6.12.0.tar.xz (1.2 MiB). Every step kpkg takes applies to this port.

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

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja -Wno-dev \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DQT_BUILD_EXAMPLES=OFF \
	-DQT_BUILD_TESTS=OFF
ninja
DESTDIR=$PKG ninja install

Libraries: libQt6ShaderTools.so.

Directories: /usr/include/qt6/QtShaderTools, /usr/lib/cmake/Qt6ShaderTools, /usr/lib/cmake/Qt6ShaderToolsPrivate, /usr/lib/cmake/Qt6ShaderToolsTools, /usr/share/licenses/qt6-qtshadertools.

Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own: it reads them, and its CMake setup, from qt6-qtbase (see How Qt 6 is built).