Hi,
I can’t get the building to work using the official guide. I’m under Kubuntu 24.04 in a VM. I tried to build kcalc
and okular
, both produce the same error message:
# kde-builder running: 'cmake' '-B' '.' '-S' '/home/andrej/kde/src/okular' '-G' 'Ninja' '-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON' '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DBUILD_WITH_QT6=ON' '-DCMAKE_CXX_FLAGS:STRING=-pipe' '-DCMAKE_INSTALL_PREFIX=/home/andrej/kde/usr' '-DCMAKE_PREFIX_PATH=/home/andrej/Qt/6.8.2/gcc_64'
# from directory: /home/andrej/kde/build/okular
# with environment: /home/andrej/kde/build/okular/kde-builder.env
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:18 (find_package):
Could not find a configuration file for package "ECM" that is compatible
with requested version "5.240.0".
The following configuration files were considered but not accepted:
/usr/share/ECM/cmake/ECMConfig.cmake, version: 5.115.0
-- Configuring incomplete, errors occurred!
# exit code was: 256
I already tried to fix build dependencies by sudo apt build-dep okular
. Also I verified that the package extra-cmake-modules
is present on the OS. What else can I try?
You seem to not have built ECM for some reason. kde-builder is only finding the Qt5 version instead of the Qt6 version.
By default ECM should have been built before any other module (including kcalc or okular), so that’s very weird.
Try kde-builder extra-cmake-modules
.
Thanks, that helped me to get me further, but not all the way. I repeated kde-builder extra-cmake-modules
and sudo apt build-dep extra-cmake-modules
and got rid of this message.
When I now build okular, I get a bunch of these:
-- Could NOT find KF6Archive (missing: KF6Archive_DIR)
-- Could NOT find KF6Archive: found neither KF6ArchiveConfig.cmake nor kf6archive-config.cmake
-- Could NOT find KF6Bookmarks (missing: KF6Bookmarks_DIR)
-- Could NOT find KF6Bookmarks: found neither KF6BookmarksConfig.cmake nor kf6bookmarks-config.cmake
-- Could NOT find KF6Completion (missing: KF6Completion_DIR)
-- Could NOT find KF6Completion: found neither KF6CompletionConfig.cmake nor kf6completion-config.cmake
-- Could NOT find KF6Config (missing: KF6Config_DIR)
-- Could NOT find KF6Config: found neither KF6ConfigConfig.cmake nor kf6config-config.cmake
-- Could NOT find KF6ConfigWidgets (missing: KF6ConfigWidgets_DIR)
In the official guide (“Installing build dependencies”) those errors are mentioned.
So I followed the guide by executing sudo apt search bookmarks
. It found only libkf5bookmarks-dev
, which is already installed. The required libkf6bookmarks-dev
is not available.
Another idea suggested by the guide was apt-file find KF6Bookmarks.config
, which also produces no hits. So I got stuck here…
That method is for external dependencies, not KDE dependencies. KDE dependencies are supposed to be built by kde-builder automatically for each project by default.
It looks like your kde-builder is not building the KDE dependencies for each project. That is not the default behavior.
Have you ever altered your ~/.config/kde-builder.yaml to have no-include-dependencies?
1 Like
Yes, I played with that file and then forgot about it
Thank you very much.
Now it seems to be working, although still not done because there is a lot to do.
1 Like