Build failing with kdesrc-build: kcalc

Hi everyone, I’m new here. I’m trying to start looking at KDE development, and I was starting to look at KCalc as in the guide.

I’m using Kubuntu 22.04, and I followed the instructions in the build guide. However, I have an issue: when I try to build kcalc, there is a failure:

Building kconfig from frameworks (2/23)
        Fetching remote changes to kconfig
        Merging kconfig changes from branch master
        Source update complete for kconfig: no files affected
          Rebuilding because the last configure failed
        Preparing build system for kconfig.
        Removing files in build directory for kconfig
        Old build system cleaned, starting new build system.
        Running cmake targeting Kate - Ninja...
        Unable to configure kconfig with KDE CMake

kconfig didn't build, stopping here.
...

Now it also tells me to install additional dependencies (done), and the cmake log it points me to (~/kde/src/log/2024-04-12-04/kconfig/cmake.log) says this:

CMake Error at ~/kde/usr/share/ECM/modules/ECMQmlModule6.cmake:24 (qt6_policy):
  Unknown CMake command "qt6_policy".
Call Stack (most recent call first):
  ~/kde/usr/share/ECM/modules/ECMQmlModule.cmake:181 (include)
  CMakeLists.txt:26 (include)

Is there something I’m missing? Thank you,

You need at least Qt 6.5. Ubuntu 22.04 only has 6.2

Well, I guess this solves it. Thank you very much!