KFind 17.12.3 编译实录
刚出的《neon-useredition-20180405-1018-amd64》,居然没有带自家的KFind软件。那咱就把它装上。
从官网下载源码包,解压放到本地。用apt show cmake查出来的版本=5.31,而其官网的最新版本则=3.11.看不清为何差这么多,还是选高版本的。所以就直接apt installcmake了。
之后会有一个如影随形的: ECMConfig.cmake错误。使出 apt install extra-cmake-modules 大法破之。
前方高能,kf5家族组团来袭! KF5KDELibs4SupportConfig.cmake / KF5ArchiveConfig.cmake / KF5DocToolsConfig.cmake / KF5WidgetsAddonsConfig.cmake
官方文档中并未提到,试着投入 sudo apt install qtbase5-dev libqt5webkit5-dev ,没起作用。
根据“相似原则”,找到最类似的包名,拼凑成: sudo apt install libkf5kdelibs4support-dev libkf5archive-dev libkf5doctools-dev libkf5widgetsaddons-dev
-- The following REQUIRED packages have been found:
* ECM (required version >= 5.28.0)
* Qt5Gui (required version >= 5.10.0)
* Qt5Widgets
* Qt5Concurrent
* Qt5 (required version >= 5.6.0)
* Qt5Core
* Gettext
* PythonInterp
* KF5KDELibs4Support
* KF5Archive
* KF5DocTools
* KF5WidgetsAddons
* KF5
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kfind-18.03.90
make 的最后一行:[100%] Built target doc-kfind-1
make 的最后一行:-- Installing: /usr/local/share/man/man1/kfind.1
验证:kfind --version
kfind 17.12.3
搞定,收工。在菜单中输入kFind,可以出来.