'KDevelop failed to configure projects
after setting up KDevelop under Kubuntu 19.10 with CMake, the following error occurs whenever I open a project:
Failed to configure the project (error message: Configuration failed.).
As a result, KDevelop's code understanding will likely be broken. To fix this issue, please ensure that the project's CMakeLists.txt files are correct, and KDevelop is configured to use the correct CMake version and settings. Then right-click the project item in the projects tool view and click 'Reload'.*
If I ignore the message, I can compile my project without any issues, the CMakeLists.txt is set up correctly. I have no idea where to solve this error, I haven't found anything for this specific case on google.
EDIT: Additional information
KDevelop Version: 5.4.2
CMake Version: 3.13.4
Upon creating a new KDevelop project, I create "new from template", choose the KDevelop Category and the standard "Simple KDevelop Plugin" as project type. After creation, it instantly prompts me with said error.
In the picture below, you can see the CMake configuration for the newly added project.
Solution 1:[1]
Make sure you have:
base-devel
extra-cmake-modules
To install:
apt install extra-cmake-modules
If that doesn't work, you might need to add some repos. Check this discussion
Explanation:
I had a similar problem and got:
Failed to configure project 'me_first_proj' (error message: Exit code 1). As a result, KDevelop's code understanding will likely be broken.
Inside CMakeLists.txt I found it looking for $ECM_MODULE_PATH which turned out to be empty.
This, was related to extra-cmake-modules which I didn't have.
For Arch: pacman -Syu extra-cmake-modules
The name might differ for your distro.
I already had base-devel but required ECM
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
