fcitx-qt5插件编译(linux)

fcitx-qt5插件编译(linux)

2023年7月26日发(作者:)

fcitx-qt5插件编译(linux)源码下载注意,github上还有⼀个名为fcitx5-qt的代码仓库,不要弄混CMake安装可参考⽹上相关⽂档,注意版本就好(我⽤的是3.13,⽐这个版本⾼应该没问题,低了不确定),此处不再赘述。编译cmake编译⽅式,步骤如下:1. 创建⼀个build空⽬录⽬录位置可以任意,我放到了源码根⽬录2. 进⼊该⽬录,执⾏cmake命令cmake -DENABLE_LIBRARY=false -DQt5_DIR=[Qt⽬录]/lib/cmake/Qt5错误1: 找不到 Make Error at :36 (find_package):By not providing "" in CMAKE_MODULE_PATH this project hasasked CMake to find a package configuration file provided by "Fcitx", butCMake did not find not find a package configuration file provided by "Fcitx" (requestedversion 4.2.8) with any of the following names: dd 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 beeninstalled.-- Configuring incomplete, errors occurred!See also"/media/veracrypt/mythware/gerrit/QT/ClassroomManagement/ClassroomManagement/Submodules/fcitx/fcitx-qt5/build/CMakeFiles/".解决⽅案命令⾏增加"-DENABLE_LIBRARY=false"参数错误2: 找不到 Make Error at :8 (find_package):Could not find a package configuration file provided by "ECM" (requestedversion 1.4.0) with any of the following names: dd 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 aseparate development package or SDK, be sure it has been installed.-- Configuring incomplete, errors occurred!See also "/home/shana/fcitx-qt5/build/CMakeFiles/".解决⽅案⽅案⼀:安装extra-cmake-modules包,命令如下:sudo apt install extra-cmake-modules⽅案⼆:下载extra-cmake-modules源码进⾏编译.编译⽅式类似,最后通过"make install"命令进⾏安装,或者根据提⽰信息设置编译环境变量错误3: 找不到 解决⽅案命令⾏增加"-DQt5_DIR=[Qt⽬录]/lib/cmake/Qt5"参数3. 执⾏makemake安装 命令会将插件装到指定qt环境下的plugins⽬录下.make install

发布者:admin,转转请注明出处:http://www.yc00.com/web/1690367804a339109.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信