Kdesrc-build build errors

Hi,

I’m a newbie and I’ve got as far as kdesrc-build building but I’m hitting a kcoreaddons build error:

/usr/include/c++/14/cstddef:50:10: fatal: ‘stddef.h’ file not found
/tmp/bindings_iSVNBL.hpp:1:10: note: in file included from /tmp/bindings_iSVNBL.hpp:1:

kdesrc-build --delete-my-settings kdeconnect plasma-desktop plasma-workspace kwin systemsettings

Have I invoked kdesrc-build correctly to build a minimalist KDE?

Martin

This seems like Basic troubleshooting | Developer

Thanks for this.

I’ve got further but in plasma-activities/cmake.log:

CMake Error at CMakeLists.txt:39 (find_package):
Could not find a configuration file for package “Qt6” that is compatible
with requested version “6.9.0”.

Forgive my ignorance, but is this normal? Will issues like this be normally picked up in the CI process and all I need to do is retry the build later?

Martin

Ordinarily yes, it’s normal to have to diagnose build issues, but that specific one seems to be saying your Qt is too old (you didn’t provide enough info). What distro are you using?

Take a look at the notes about up-to-date distros at: Building KDE software | Developer

I’m building on Debian 13 (Trixie).

Thanks for the link – I’ll research the link more thoroughly over the weekend.

Yeah, on Debian 13 the Qt version is not enough (it’s 6.8 but you need 6.9), so you need to follow Set up a development environment | Developer

Hmm. I’m confused. On a vanilla Debian 13 box dpkg -l | grep qt returns nothing.

I’ve followed the instructions for (invent kde org slash sdk slash kdesrc-build)** which must have installed Qt. Which it has. On my dev machine dpkg -l | grep qt lists a whole bunch of 6.8 libs.

So kdesrc-build --initial-setup has installed Qt 6.8, not 6.9.

What is the difference between kdesrc-build and kde-builder?

** I cannot insert links

Yeah, because it’s what’s available on the distribution.

kde-builder is actively maintained and has a dozen or so additional improvements, kdesrc-build is pretty much in maintenance mode. kdesrc-build is mostly used by developers that are already used to it, since it still works.

Ah. OK.

I’ll scrap the VM and start again with kde-builder.

Thanks for your help.

Martin

If you’re doing this in a VM anyway, you’ll probably have a nicer time using a more up-to-date distribution like Fedora, openSUSE Tumbleweed or Arch.

1 Like