Could not find a configuration file for package "ECM" that is compatible with requested version 1.5.0

35

2

I tried to download "ECMConfig.cmake" from repository, but terminal gives me an error: "question's title + The following configuration files were considered but not accepted: ECMConfig.cmake : version is unknowed. I tried to search on Google, but got nothing. I wanted to compile from source "kde frameworks" using this command:

cmake .. -DCMAKE_INSTALL_PREFIX=/home/john/QtProjects/KDEStuff/frameworkintegration/build/ 
         -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_PREFIX_PATH=/home/john/Downloads/

P.S:
"/home/john/Downloads/" - where my *.cmake is.

pushandpop

Posted 2014-12-08T15:47:55.590

Reputation: 505

Answers

48

Try to clone, compile and install the extra-cmake-modules KDE project. 

git clone git://anongit.kde.org/extra-cmake-modules
cd extra-cmake-modules
mkdir build && cd build    
cmake ..
make && sudo make install

Diego Lopez

Posted 2014-12-08T15:47:55.590

Reputation: 604

Too bad that these commands did not work in my case. I've got CMake Error at /usr/local/share/ECM/modules/ECMQueryQmake.cmake:23 with message QMake call failed: No such file or directory even after execution of all above. Update is appreciated. – im_infamous – 2016-06-20T18:54:07.000

@im_infamous Please check that last command sudo make install was succesfull. – Diego Lopez – 2016-06-23T11:52:34.683

17

In my case I simply had to install the extra-cmake-modules package.

f3xy

Posted 2014-12-08T15:47:55.590

Reputation: 271

2This is the best solution! – Antonio Petricca – 2018-06-04T21:36:09.573

Worked for me with Fedora 30. – erik – 2020-01-02T15:24:12.653