找不到与请求的版本1.5.0兼容的软件包“ ECM”的配置文件


33

我尝试从存储库下载“ ECMConfig.cmake”,但终端给我一个错误:问题的标题 +考虑了以下配置文件,但未接受:ECMConfig.cmake:版本未知。 我尝试在Google上搜索,但得到了我想使用以下命令从源“ kde frameworks”进行编译:

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

PS:
“ / home / john / Downloads /”-我的* .cmake所在的位置。

Answers:


46

尝试克隆,编译和安装extra-cmake-modules KDE项目。 

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

不幸的是,这些命令在我的情况下不起作用。执行以上所有操作后,我仍然收到CMake Error at /usr/local/share/ECM/modules/ECMQueryQmake.cmake:23消息QMake call failed: No such file or directory。更新表示赞赏。
im_infamous

@im_infamous请检查最后一个命令sudo make install是否成功。
迭戈·洛佩兹

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.