How does one configure kde-builder to use qt5?

What is the proper way to configure kde-builder to build against qt5? I think I’m missing something simple.

I’ve been following the kde-builder setup guide. I set branch-group to kf5-qt5 in kde-builder.yaml. Then as a test, I tried kde-builder kpat and the result:

Fetching remote changes to sysadmin-repo-metadata
Merging sysadmin-repo-metadata changes from branch master
 * Unable to determine correct module graph
 * Will attempt to continue.
Holding performance profile

 <<<  Update Process  >>>

 <<<  Build Process  >>>

:-)
Your logs are saved in /home/yangvp/Devel/kde/log/2025-01-06_03
  (additional logs are saved in /home/yangvp/.local/state/log/2025-01-06_03)

The no source code was downloaded and the log dir was empty.

Using KDevelop, I am able to create, compile, and run the C++ KDE Frameworks 5. So that gives me some confidence I have a working development environment.

Out of curiosity, what’s your use case for this? Most KDE software has since been ported to Qt 6, and the Frameworks 5 branch is all but abandoned.

I’ve been revisiting a long-dormant personal project for some self-taught exploration. I’m running kubuntu 24.04 “noble” and I thought – perhaps naively – I could resume with qt5, in line with noble’s KDE version. And by “long-dormant” I mean I started this project when qt4 was about a year old.

When I tried setting branch-group to kf6-qt6, the build failed with:

Could not find a configuration file for package "Qt6" that is compatible
with requested version "6.5.0".

kubuntu 24.04 qt6 support is up to 6.4.2, but 24.10 is qt 6.6.2. Some options that immediately come to mind:

  • Return to my qt5 setup with kdevelop, setting aside kde-builder for the near term. Probably easiest if I insist on using qt5, but then I’d miss out on learning kde-builder.
  • Update to 24.10, though I like the stability of 24.04 being a LTS release.
  • Dual boot (or virtual machine, would that be ill-advised?) to setup a completely separate dev environment.

On the original topic of this thread, is there not a way to tell kde-builder to use qt5? Some non-obvious combination of config options?

Failing that, what about a way to tell kde-builder to use qt 6.4.2?

My motivation is to have a working hobby project setup, using the “kde way” of doing things, without upsetting my linux system too much, and learn some things along the way. Thanks.

Hi, We are also in the same page, we are doing the kde application code changes on top of qt5 and k-framework-5, and were facing the exact same problem when were trying to compile the ‘dolphin’ application in Ubuntu 24.04 where it has only support qt5 and kframework-5.

The root cause for this issues is, the branch detail does not configure for respective branch-group.

We have fixed this issue by doing below listed changes to work with qt5. It would fix your problem as well. if it is really helped to fix your problem, please let us know.

In .config/kde-builder.yaml files,

Change-1: change the branch-group: stable-kf5-qt5

Change-2: include ${build-configs-dir}/kde5.yaml: “”

In .local/state/sysadmin-repo-metadata/dependencies/logical-module-structure.json,

Configure the branch detail for application repositories. stable-kf5-qt5": “release/23.08”

Regards,
Kalyan-G.

I don’t have it working yet, but the changes @kalgnana suggested do point me in the right direction for specifying the branch I want. I appreciate the help on my kde-builder journey.

Success! The changes from @kalgnana ultimately worked for me after I resolved an unrelated issue.

For the case of kpat in particular, I did make one edit to its CMakeLists.txt: I turned off WITH_BH_SOLVER. Then it compiled and ran successfully. Thanks for your help.