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

47,658

Solution 1

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

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

Solution 2

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

sudo pacman -S extra-cmake-modules
Share:
47,658

Related videos on Youtube

pushandpop
Author by

pushandpop

T-1000 is my worsest nightmare.

Updated on September 18, 2022

Comments

  • pushandpop
    pushandpop over 1 year

    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.

  • im_infamous
    im_infamous almost 8 years
    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.
  • Diego Lopez
    Diego Lopez almost 8 years
    @im_infamous Please check that last command sudo make install was succesfull.
  • Antonio Petricca
    Antonio Petricca almost 6 years
    This is the best solution!
  • erik
    erik over 4 years
    Worked for me with Fedora 30.
  • Sigismund
    Sigismund over 3 years
    Package is now located @ github.com/KDE/extra-cmake-modules
  • Javier Cordero
    Javier Cordero over 3 years
    The GitHub link is a mirror available for everyone's convenience. The main git repository is now at: invent.kde.org/frameworks/extra-cmake-modules.git
  • Rγσ ξηg Lιαη Ημ
    Rγσ ξηg Lιαη Ημ almost 3 years
  • Admin
    Admin almost 2 years
    Or sudo apt-get install extra-cmake-modules