Building KDE Frameworks 6.32.0 (KF6)

KDE Frameworks is a collection of libraries based on top of Qt6 and QML derived from the previous KDE libraries. They can be used independent of the KDE Display Environment (Plasma 6).

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

The instructions below build all of the KDE Frameworks packages in one step by using a bash script.

Package Information

KF6 Dependencies

Required

Extra-CMake-Modules-6.32.0, breeze-icons-6.32.0, docbook-xml-4.5, docbook-xsl-nons-1.79.2, libcanberra-0.30, libdmtx-0.7.8, libgcrypt-1.12.4, libical-4.0.8, libsecret-0.21.8.2, libxslt-1.1.45, lmdb-1.0.3, oxygen-icons-6.32.0, qca-2.3.12, libqrencode-4.1.1, plasma-wayland-protocols-1.23.0, PyYAML-6.0.4, shared-mime-info-2.5.1, URI-5.40, and Wget-1.25.0 (required to download the packages)

Recommended

Optional

BlueZ-5.88 (needed to build Bluez-Qt)

Runtime dependency for FrameworkIntegration

Noto fonts

Additional recommended dependencies for kapidox

Additional image formats support in KImageFormats

Imath-3.2.3, libavif-1.4.2, libheif-1.23.7, libjxl-0.13.0, libraw-0.22.3, OpenEXR

Optional dependencies for Solid

UDisks-2.12.0, UPower-1.91.5 and media-player-info (runtime)

Optional dependency for KWallet

gpgmepp-2.2.0

Optional dependencies for kcoreaddons

Shiboken6 and PySide6

Optional dictionary backends for Sonnet

Hspell and Hunspell

Downloading KDE Frameworks

The easiest way to get the KDE Frameworks packages is to use a single wget to fetch them all at once:

url=https://download.kde.org/stable/frameworks/6.32/
wget -r -nH -nd -A '*.xz' -np $url

The options used here are:
  -r            recurse through child directories
  -nH           disable generation of host-prefixed directories
  -nd           do not create a hierarchy of directories
  -A '*.xz'     just get the *.xz files
  -np           don't get parent directories

Setting Package Order

The order of building files is important due to internal dependencies. Create the list of files in the proper order as follows:

cat > frameworks-6.32.0.md5 << "EOF"
f3695e3140ffe9424758aa762f85af62  attica-6.32.0.tar.xz
#c3f037787c61e55c8205fe32ba12ae07  extra-cmake-modules-6.32.0.tar.xz
de0dee348898db0beb4a42ed238437b1  kapidox-6.32.0.tar.xz
28d3e1b2d1274f54b42a89790e17b48c  karchive-6.32.0.tar.xz
4063b4cb4a7e0828e5148f6ad4e82833  kcodecs-6.32.0.tar.xz
d2e8b097988698f5a8e4e0bb49f9572a  kconfig-6.32.0.tar.xz
1cd9f24a95b35c8cc69e123d0356dbb1  kcoreaddons-6.32.0.tar.xz
f71330f596b0666069d0135b563bf8b5  kdbusaddons-6.32.0.tar.xz
cda2e753b7d90b52472bc74292512045  kdnssd-6.32.0.tar.xz
6931f4fb39abc414c9320d491058cda9  kguiaddons-6.32.0.tar.xz
4c570a48befefd59da2c456c75ec4727  ki18n-6.32.0.tar.xz
7eedc51bc2b7b7bc24797a33082d250a  kidletime-6.32.0.tar.xz
5b62dca03cf3ab68d069d0e714567539  kimageformats-6.32.0.tar.xz
09d2dd64c4208425268a9bc0b6c16756  kitemmodels-6.32.0.tar.xz
40ee012e5db3f8aafcaa120dfc935ec0  kitemviews-6.32.0.tar.xz
46efef028e799c3fb5f1e37b543fcf25  kplotting-6.32.0.tar.xz
6e50b87da603070de2c232c3d9181254  kwidgetsaddons-6.32.0.tar.xz
8b1bb98ef5a75e86cf5f2ae161b151f3  kwindowsystem-6.32.0.tar.xz
c3d7266bc90f4194fbe35a23a76ac64b  networkmanager-qt-6.32.0.tar.xz
9b1ef4bdf1eaccc37d196733ef40ffa9  solid-6.32.0.tar.xz
be7bd625614936cc5dfc919b984783ba  sonnet-6.32.0.tar.xz
efc7d0af60c9a89b8ad6270fc5a9fab4  threadweaver-6.32.0.tar.xz
bbc5316e33cb5cba871c4350f903be15  kauth-6.32.0.tar.xz
2ed64e2e4c56ba58b39eec875573cbad  kcompletion-6.32.0.tar.xz
59be55a191b8f788ad3ee464ecb8d7e1  kcrash-6.32.0.tar.xz
8a155bc31dbcb5720d679c9863f9961d  kdoctools-6.32.0.tar.xz
ad717bda4b8e9e1de5c1f1f10d5d555a  kpty-6.32.0.tar.xz
81b9732efaa365bfa532d4d4bfac536e  kunitconversion-6.32.0.tar.xz
f09772d8b6888c97de402738a8c4a489  kcolorscheme-6.32.0.tar.xz
ea635b9ad877ccbda7efb82d283ef320  kconfigwidgets-6.32.0.tar.xz
bf9372293bf9bd3670d3abf7793932c8  kservice-6.32.0.tar.xz
dc5aa4ecb9d3390413350c55963af310  kglobalaccel-6.32.0.tar.xz
f1cd8814c3f637a5ce49125b2076cd2a  kpackage-6.32.0.tar.xz
c030a21639bf78e417b451f9824f1b03  kdesu-6.32.0.tar.xz
9a3d70846b2144598598e56f2410d6e1  kiconthemes-6.32.0.tar.xz
f3e9d07f6312aa3808e637561a0b175f  knotifications-6.32.0.tar.xz
19d9efb3b2f2f4fea872901eb0e09474  kjobwidgets-6.32.0.tar.xz
321c9f14a05042bbf32d6a95437dacec  ktextwidgets-6.32.0.tar.xz
faf749b8242d5c771531c5a7f534d824  kxmlgui-6.32.0.tar.xz
4fdb0b4d52a86659ee54047329d57f6d  kbookmarks-6.32.0.tar.xz
27238938c0ad6dd686714063ac6dcb07  kwallet-6.32.0.tar.xz
ea96065a4806eb102c04e7224738e232  kded-6.32.0.tar.xz
53c194638cf94b28419d4900bc50e5e4  kio-6.32.0.tar.xz
93a6dda130920b27a8828238d1942a1a  kdeclarative-6.32.0.tar.xz
acb9cad48fdd254e0bedd45b3afc2b03  kirigami-6.32.0.tar.xz
1ef0237791cbf5bd7c0094e0f4cfb133  kcmutils-6.32.0.tar.xz
fb2185cd008ff50d08d0cafc040d0ebe  syndication-6.32.0.tar.xz
06b12dbcc84ce97429b653e32203df62  knewstuff-6.32.0.tar.xz
c43f1ea2a466f8d97fae59e84231e9f2  frameworkintegration-6.32.0.tar.xz
d636986f170947175ffd9b1c27d9f2fd  kparts-6.32.0.tar.xz
0505a0d0fc7a48df494331617cc3573a  syntax-highlighting-6.32.0.tar.xz
f3ffc2ab0c80febc42387ed2dd6a73ad  ktexteditor-6.32.0.tar.xz
db566b07d20b154717aef195a73e3b1c  modemmanager-qt-6.32.0.tar.xz
1192163feb140bcc5b89b6c13aacc84c  kcontacts-6.32.0.tar.xz
be6e4f877c5be8083e60eb5e425dc70e  kpeople-6.32.0.tar.xz
536895ab8810f88af78ca415b26c186b  bluez-qt-6.32.0.tar.xz
cc337100c3f890dea5bcd5d18ab13b42  kfilemetadata-6.32.0.tar.xz
e3c7f3c05d257764be79545f457e293e  baloo-6.32.0.tar.xz
#e52d47599d576572bf48b8d8062ef67b  breeze-icons-6.32.0.tar.xz
#b1ab252cde3e25338ac97ea1c0452428  oxygen-icons-6.32.0.tar.xz
d27545165c809d0628092a3965d85702  krunner-6.32.0.tar.xz
df5d5a0950d7270be5020dbf3b897c70  prison-6.32.0.tar.xz
bed80bbbb803018bc754e3a3d9d6cea1  qqc2-desktop-style-6.32.0.tar.xz
d87ca1800378858a45a9ebe73bb74cd9  kholidays-6.32.0.tar.xz
91f38e4874974a878a53b53dadb54397  purpose-6.32.0.tar.xz
84eb48404a8585cdca4680ec69a5d48d  kcalendarcore-6.32.0.tar.xz
d4aea0cb38b66671339e669ed42f5326  kquickcharts-6.32.0.tar.xz
b83a679c3f0efc6fac0f4ac01d4dbcf2  knotifyconfig-6.32.0.tar.xz
ac39fbbc8a557a6cc35e28b2265edbe2  kdav-6.32.0.tar.xz
6c428c4488acedb9e362c496f36369b6  kstatusnotifieritem-6.32.0.tar.xz
552f90dadd11a9da97c9334046c9b823  ksvg-6.32.0.tar.xz
26c35f460ef73ead25a5a99991b27e74  ktexttemplate-6.32.0.tar.xz
cc03466ef6ef8df3562cd192379cf96a  kuserfeedback-6.32.0.tar.xz
e1569d618f551a9417c0fe092e448ec5  kmime-6.32.0.tar.xz
EOF

In the above list, notice that some files have been commented out with a hash (#) character.

  • The extra-cmake-modules entry has been commented out because it was built earlier in the Introduction to KDE.

  • This icon packages are covered separately at breeze-icons-6.32.0 and oxygen-icons-6.32.0. They are separate to allow users that need these icons but do not need the full set of KF6 packages (e.g. LXQt-Post-Install) to more easily install them. However they are a required dependency for several kf6 packages.

Installation of KDE Frameworks

[Note]

Note

When installing multiple packages in a script, the installation needs to be done as the root user. There are three general options that can be used to do this:

  1. Run the entire script as the root user (not recommended).

  2. Use the sudo command from the Sudo-1.9.17p2 package.

  3. Use su -c "command arguments" (quotes required) which will ask for the root password for every iteration of the loop.

One way to handle this situation is to create a short bash function that automatically selects the appropriate method. Once the command is set in the environment, it does not need to be set again.

as_root()
{
  if   [ $EUID = 0 ];        then $*
  elif [ -x /usr/bin/sudo ]; then sudo $*
  else                            su -c \\"$*\\"
  fi
}

export -f as_root
[Caution]

Caution

If installing in /opt and there is an existing /opt/kf6 either as a regular directory or a symbolic link, it should be reinitialized (as root):

mv -v /opt/kf6 /opt/kf6.old                         &&
install -v -dm755           $KF6_PREFIX/{etc,share} &&
ln -sfv /etc/dbus-1         $KF6_PREFIX/etc         &&
ln -sfv /usr/share/dbus-1   $KF6_PREFIX/share       &&
ln -sfv /usr/share/polkit-1 $KF6_PREFIX/share

First, start a subshell that will exit on error:

bash -e

Install all of the packages by running the following commands:

while read -r line; do

    # Get the file name, ignoring comments and blank lines
    if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
    file=$(echo $line | cut -d" " -f2)

    pkg=$(echo $file|sed 's|^.*/||')          # Remove directory
    packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory

    name=$(echo $pkg|sed 's|-6.*$||') # Isolate package name

    tar -xf $file
    pushd $packagedir

      # kapidox is a python module
      case $name in
        kapidox)
          pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD
          as_root pip3 install --no-index --find-links dist --no-user kapidox
          popd
          rm -rf $packagedir
          continue
          ;;
      esac

      mkdir build
      cd    build

      cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
            -D CMAKE_INSTALL_LIBEXECDIR=libexec \
            -D CMAKE_PREFIX_PATH=$QT6DIR        \
            -D CMAKE_SKIP_INSTALL_RPATH=ON      \
            -D CMAKE_BUILD_TYPE=Release         \
            -D BUILD_TESTING=OFF                \
            -D BUILD_PYTHON_BINDINGS=OFF        \
            -W no-author ..
      make
      as_root make install
    popd

  as_root rm -rf $packagedir
  as_root /sbin/ldconfig

done < frameworks-6.32.0.md5

exit
[Note]

Note

Any modules that have been omitted can be installed later by using the same mkdir build; cd build; cmake; make; make install procedure as above.

Useless systemd units have been installed in $KF6_PREFIX/lib. Remove them now (as root):

rm -rf $KF6_PREFIX/lib/systemd

Sometimes the installation paths are hardcoded into installed files. If the installed directory is not /usr, rename the directory and create a symlink:

mv -v /opt/kf6 /opt/kf6-6.32.0
ln -sfvn kf6-6.32.0 /opt/kf6

Command Explanations

-D CMAKE_PREFIX_PATH=$QT6DIR: This switch is used to allow cmake to find the proper Qt libraries.

-D CMAKE_BUILD_TYPE=Release: This switch is used to apply higher level of the compiler optimizations.

-D BUILD_TESTING=OFF: This switch is used to prevent building test programs and libraries that are of no use to an end user.

-D BUILD_PYTHON_BINDINGS=OFF: This switch is used to prevent building Python modules that require external optional dependencies.

Contents

Installed Programs: balooctl6, baloosearch6, balooshow6, checkXML6, kbuildsycoca6, kcmshell6, kded6, kde-geo-uri-handler, kiconfinder6, knewstuff-dialog6, kpackagetool6, kquitapp6, kreadconfig6, ksecretd, ksyntaxhighlighter6, ktelnetservice6, ktexteditor-script-tester6, ktrash6, kwalletd6, kwallet-query, kwriteconfig6, meinproc6, parsetrigrams6, and solid-hardware6
Installed Libraries: libkdeinit6_klauncher.so, libKF6Archive.so, libKF6Attica.so, libKF6AuthCore.so, libKF6Baloo.so, libKF6BluezQt.so, libKF6Bookmarks.so, libKF6BookmarksWidgets.so, libKF6CalendarCore.so, libKF6CalendarEvents.so, libKF6Codecs.so, libKF6ColorScheme.so, libKF6Completion.so, libKF6ConfigCore.so, libKF6ConfigGui.so, libKF6ConfigQml.so, libKF6ConfigWidgets.so, libKF6Contacts.so, libKF6CoreAddons.so, libKF6Crash.so, libKF6DAV.so, libKF6DBusAddons.so, libKF6DNSSD.so, libKF6DocTools.so, libKF6FileMetaData.so, libKF6GlobalAccel.so, libKF6GuiAddons.so, libKF6Holidays.so, libKF6I18n.so, libKF6I18nLocaleData.so, libKF6I18nQml.so, libKF6IconThemes.so, libKF6IconWidgets.so, libKF6IdleTime.so, libKF6ItemModels.so, libKF6ItemViews.so, libKF6JobWidgets.so, libKF6KCMUtils.so, libKF6KCMUtilsCore.so, libKF6KCMUtilsQuick.so, libKF6KIOCore.so, libKF6KIOFileWidgets.so, libKF6KIOGui.so, libKF6KIOWidgets.so, libKF6ModemManagerQt.so, libKF6NetworkManagerQt.so, libKF6NewStuffCore.so, libKF6NewStuffWidgets.so, libKF6Notifications.so, libKF6NotifyConfig.so, libKF6Package.so, libKF6Parts.so, libKF6PeopleBackend.so, libKF6People.so, libKF6PeopleWidgets.so, libKF6Plotting.so, libKF6PrisonScanner.so, libKF6Prison.so, libKF6Pty.so, libKF6Purpose.so, libKF6PurposeWidgets.so, libKF6Runner.so, libKF6Service.so, libKF6Solid.so, libKF6SonnetCore.so, libKF6SonnetUi.so, libKF6StatusNotifierItem.so, libKF6Style.so, libKF6Su.so, libKF6Svg.so, libKF6Syndication.so, libKF6SyntaxHighlighting.so, libKF6TextEditor.so, libKF6TextTemplate.so, libKF6TextWidgets.so, libKF6ThreadWeaver.so, libKF6UnitConversion.so, libKF6UserFeedbackCore.so, libKF6UserFeedbackWidgets.so, libKF6Wallet.so, libKF6WidgetsAddons.so, libKF6WindowSystem.so, libKF6XmlGui.so, libKirigamiDelegates.so, libKirigamiDialogs.so, libKirigamiLayoutsPrivate.so, libKirigamiLayouts.so, libKirigamiPlatform.so, libKirigamiPolyfill.so, libKirigamiPrimitives.so, libKirigamiPrivate.so, libKirigami.so, libKirigamiLayouts.so, libkuriikwsfiltereng_private.so, libQuickCharts.so, and libQuickChartsControls.so
Installed Directories: /opt/kf6 (symlink to /opt/kf6-6.32.0) if installing in /opt

Short Descriptions

checkXML6

is a tool to check for syntax errors in KDE DocBook XML files

kbuildsycoca6

rebuilds the KService desktop file system configuration cache

kcmshell6

starts a single System Settings module, which can be useful when debugging problems with the System Settings application

kded6

consolidates several small services into a single process

kde-geo-uri-handler

processes URIs that contain geolocation information

kiconfinder6

locates an icon based on it's name

knewstuff-dialog6

displays a KNSRC file (which uses the KNewStuff framework) to the user

kpackagetool6

is a command line tool for managing KDE packages

kquitapp6

is a command line tool to safely force a D-Bus enabled application to exit

kreadconfig6

is a command line tool to retrieve values from KDE configuration files

ksecretd

starts the KDE Wallet service, which is used to manage a user's saved passwords and certificates

ksyntaxhighlighter6

is a command line syntax highlighter that uses the syntax definitions from KSyntaxHighlighting

ktelnetservice6

is used by Konsole to handle Telnet and SSH schemes

ktexteditor-script-tester6

is a command line tool to validate and test Kate command scripts

ktrash6

is a helper program to handle the KDE trash can

kwalletd6

is a compatibility service for KWallet, wrapping around libsecret and ksecretd

kwallet-query

is a command line tool to query KWallet and ksecretd and list the entries in the user's wallet, as well as read or set a password

kwriteconfig6

is a command line tool to write values in KDE configuration files

meinproc6

converts DocBook files to HTML

parsetrigrams6

is a command line tool to parse trigrams

solid-hardware6

is a command line tool to investigate available devices on a system