解决编辑安装falkon中碰到缺少ecm问题

1、源码安装falkon是碰到了:

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)

2、后来发现是缺少了软件:extra-cmake-modules,

3、安装: sudo pacman -S extra-cmake-modules

4、编译安装后falkon依旧是不能使用,后来在https://bugs.kde.org/show_bug.cgi?id=434203发现

I highly doubt that this has anything to do with https://bugs.archlinux.org/task/69902. Qtwebengine 5.15.3 is a big update (with a big jump in chromium version) and it's normal that is causes many issues, and not all of them need to be the same one.

5、既然提到了软件Qtwebengine 5.15.3可能有问题,我刚刚把软件源从stable改成了testing,全面升级后出现的这个问题,难道真的这个软件的问题,降级软件

  cd /var/cache/pacman/pkg

  sudo pacman -U qt5-webengine-5.15.2-5-x86_64.pkg.tar.zst

  降级到最近一个版本,好了,终于正常了。

6、总结,得到以下几个教训:

  1、最好不要用testing的源,否则,就有无尽的宝藏等着发掘吧

  2、不要急着把安装过的软件包删除了,特别是老的软件包,还能是使用,特别是上个版本的,也就是说硬盘里至少两个版本,正在使用的包,和上一个可以正常使用的版本的包,降级也方便。

  3、使用滚动版本,虽然足够灵活,但是出问题的概率也许大些,因此还是建议新手不要太自行了,免得出了问题后悔都来不及。

7、觉得没有必要有两个版本的falkon,进入源代码目录,cd ~/falkon/build && sudo make uninstall卸载源码安装的软件即可

人就像是被蒙着眼推磨的驴子,生活就像一条鞭子;当鞭子抽到你背上时,你就只能一直往前走,虽然连你也不知道要走到什么时候为止,便一直这么坚持着。
原文地址:https://www.cnblogs.com/guochaoxxl/p/14526835.html