KSyntaxHighlighting 是 kde 项目中 kate-editor 的高亮实现,它通过 QSyntaxHighlighter 实现高亮渲染,因此可以在任何 qt 项目中使用
在编译 KSyntaxHighlighting 时报错:
CMake Error at CMakeLists.txt:6 (find_package):
Could not find a package configuration file provided by “ECM” (requested
version 5.85.0) with any of the following names:
ECMConfig.cmake
ecm-config.cmake
Add the installation prefix of “ECM” to CMAKE_PREFIX_PATH or set “ECM_DIR”
to a directory containing one of the above files. If “ECM” provides a
separate development package or SDK, be sure it has been installed.
– Configuring incomplete, errors occurred!
参考这篇问答:https://segmentfault.com/q/1010000003023707
sudo apt install extra-cmake-modules
即可
CMake Error at CMakeLists.txt:6 (find_package):
Could not find a configuratio