admin 管理员组文章数量: 887021
fcitx
源码下载
github:
gitee:
注意,github上还有一个名为fcitx5-qt的代码仓库,不要弄混
CMake安装
可参考网上相关文档,注意版本就好(我用的是3.13,比这个版本高应该没问题,低了不确定),此处不再赘述。
编译
cmake编译方式,步骤如下:
1. 创建一个build空目录
目录位置可以任意,我放到了源码根目录
2. 进入该目录,执行cmake命令
cmake -DENABLE_LIBRARY=false -DQt5_DIR=[Qt目录]/lib/cmake/Qt5
- 错误1: 找不到 FcitxConfig.cmake
CMake Error at CMakeLists.txt:36 (find_package):
By not providing "FindFcitx.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Fcitx", but
CMake did not find one.Could not find a package configuration file provided by "Fcitx" (requested
version 4.2.8) with any of the following names:FcitxConfig.cmake
fcitx-config.cmakeAdd the installation prefix of "Fcitx" to CMAKE_PREFIX_PATH or set
"Fcitx_DIR" to a directory containing one of the above files. If "Fcitx"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/media/veracrypt/mythware/gerrit/QT/ClassroomManagement/ClassroomManagement/Submodules/fcitx/fcitx-qt5/build/CMakeFiles/CMakeOutput.log".
- 解决方案
命令行增加"-DENABLE_LIBRARY=false"参数
- 错误2: 找不到 ECMConfig.cmake
CMake Error at CMakeLists.txt:8 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 1.4.0) with any of the following names:ECMConfig.cmake
ecm-config.cmakeAdd 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!
See also "/home/shana/fcitx-qt5/build/CMakeFiles/CMakeOutput.log".
- 解决方案
方案一:
安装
extra-cmake-modules包,命令如下:
sudo apt install extra-cmake-modules
方案二:
下载
extra-cmake-modules源码进行编译.
源码地址:
.68.0.zip编译方式类似,最后通过"make install"命令进行安装,或者根据提示信息设置编译环境变量
- 错误3: 找不到 Qt5Config.cmake
- 解决方案
命令行增加"-DQt5_DIR=[Qt目录]/lib/cmake/Qt5"参数
3. 执行make
make
安装
命令会将插件装到指定qt环境下的plugins目录下.
make install
本文标签: fcitx
版权声明:本文标题:fcitx 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1699603736h367825.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论