guides

Install Required Packages

Install Qt 6.7.2

  1. Remove Existing Qt Installation (If Needed):

    • If you need to remove an old Qt installation, run:
      sudo rm -rf /opt/qt
      
    • Heads up: This command will delete everything in /opt/qt. Make sure that directory is ready to be erased!
  2. Install Qt:

    • Download Qt using the Qt Online Installer and install it to /opt/qt.

    • Custom Installation:

      • Qt 6.7.2
      • CMake 3.29.3
      • Ninja 1.12.0

QT Custom Installation

Update PATH and Environment Variables

Create the Installation Directory

Setup kde-builder

cd ~
curl 'https://invent.kde.org/sdk/kde-builder/-/raw/master/scripts/initial_setup.sh?ref_type=heads' > initial_setup.sh
bash initial_setup.sh

Build KDE

Here is the easiest way:

Explained

workspace builds the core KDE Plasma 6 components.

It isn't installed with workspace, but I want Yakuake so I add it below and use --ignore-modules to drop Konsole.

Optional Modules

These can be included in the same way:

Final Command

kde-builder workspace `#            rrxCGPT` \          
  yakuake `#      \\         \\ \\         \\` \
  krunner `#         \\     \\  .      \\` \
  systemsettings `#         .v _  'i love the rain'\\` \
  ark `#     \\       \\   \\      ^      \\` \
  gwenview `#              |(👁️👄👁️  'beating down on my neck'\\` \
  ksysguard `#    \\_  ___ \\     j___+^+______        \\` \
  --ignore-modules=konsole `#    /   'and kde'  )        `

Troubleshooting

The build process is easy. If/when the build fails on a module...

Identify the build failure

OUTPUT:
Building breeze (108/394)
  Source update complete for breeze: Skipped
  Preparing build system for breeze.
  Removing files in build directory for breeze
  Old build system cleaned, starting new build system.
  Running cmake targeting Ninja...
  Unable to configure breeze with KDE CMake

breeze didn't build, stopping here.

<<<  PACKAGES FAILED TO BUILD  >>>
breeze - /home/ryan/kde/log/2024-08-15-09/breeze/cmake.log

Note the CMake Errors

> cat /home/ryan/kde/log/2024-08-15-09/breeze/cmake.log
...
-- Could NOT find KF5Kirigami2 (missing: KF5Kirigami2_DIR)
-- Could NOT find KF5Kirigami2: found neither KF5Kirigami2Config.cmake nor kf5kirigami2-config.cmake 
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find KF5 (missing: Kirigami2) (Required is at least version
"5.102.0")
...

Find Missing Packages

> sudo apt search Kirigami2
...
kirigami2-dev/noble,noble 5.115.0-0ubuntu6 amd64
  set of QtQuick components targeted for mobile use

libkf5kirigami2-5/noble,noble,now 5.115.0-0ubuntu6 amd64 [installed,automatic]
  set of QtQuick components targeted for mobile use

libkf5kirigami2-doc/noble,noble,noble,noble 5.115.0-0ubuntu6 all
  set of QtQuick components targeted for mobile use (documentation)

qml-module-org-kde-kirigami2/noble,noble,now 5.115.0-0ubuntu6 amd64 [installed,automatic]
  set of QtQuick components targeted for mobile use

spacebar/noble,noble 23.01.0-1build4 amd64
  SMS/MMS application for Plasma Mobile
> sudo apt install kirigami2-dev

Resume Building

kde-builder --resume

Ungoof

kde-builder --refresh-build

Unable to find stylesheets

Start KDE 6

  \.'\_    \        \
/  _  _ \        \  \
\  👁️👄👁️ 'aw' \
 |      /  \     'aw'      \
 R\    _R \  'shimbucktoo' \          
/\\\  //\    \                'doesn't even do anything'