从 github 下载 falkon 最新的源码,解压后按照 readme 指引编译,提示:
cmake ../
– The C compiler identification is GNU 10.2.0
– The CXX compiler identification is GNU 10.2.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
– Could NOT find ECM (missing: ECM_DIR)
- ECM (required version >= 5.27.0), Extra CMake Modules., https://commits.kde.org/extra-cmake-modules
CMake Error at /usr/share/cmake-3.19/Modules/FeatureSummary.cmake:457 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
CMakeLists.txt:11 (feature_summary)
安装 sudo oma install extra-cmake-modules ,安装成功。提示安装的 ecm 版本是 5.115.0。重新 cmake ,提示:
zeitaway@loong-aosc [ build ] $ cmake ..
CMake Warning at CMakeLists.txt:19 (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
–
- ECM (required version >= 5.240.0), Extra CMake Modules., https://invent.kde.org/frameworks/extra-cmake-modules
CMake Error at /usr/share/cmake-3.31/Modules/FeatureSummary.cmake:464 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
CMakeLists.txt:21 (feature_summary)
– Configuring incomplete, errors occurred!
各位大佬,出现上述错误是因为 ecm 版本太低吗?如何解决?需要到 ecm 网站上下源码,重新编译安装 ecm 吗? 请各位大神赐教。