https://github.com/JackieMium/my_blog/issues/12

sudo make install
fcitx-qt5
接下来是 fcitx-qt5。在编译它之前要让刚刚编译好的 Qt 发挥作用,所以要改路径,我的做法也是临时export一下,只要这个终端不关都能起作用,但是要记得后面的过程都在这个终端完成。

export PATH="/opt/qt5.5.1/bin/:$PATH"

git clone https://github.com/fcitx/fcitx-qt5.git
cd fcitx-qt5
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.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!
See also “/path/to/fcitx-qt5/CMakeFiles/CMakeOutput.log”.
Google 一下,哦,sudo apt install extra-cmake-modules 就行了。继续:

cmake .

错误又来了

– Could NOT find XKBCommon_XKBCommon (missing: XKBCommon_XKBCommon_LIBRARY XKBCommon_XKBCommon_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find XKBCommon (missing: XKBCommon_LIBRARIES XKBCommon) (Required
is at least version “0.5.0”)
Call Stack (most recent call first):
/usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
cmake/FindXKBCommon.cmake:30 (find_package_handle_standard_args)
CMakeLists.txt:33 (find_package)

– Configuring incomplete, errors occurred!
See also “/path/to/fcitx-qt5/CMakeFiles/CMakeOutput.log”.
WTF???..不要急不要急,Google 一下,哦,sudo apt install libxkbcommon-dev。继续:

cmake .

呵呵

– Found XKBCommon_XKBCommon: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found version “0.7.1”)
– Found XKBCommon: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version “0.7.1”, minimum required is “0.5.0”) found components: XKBCommon
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.cmake

Add 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 “/path/to/fcitx-qt5/CMakeFiles/CMakeOutput.log”.
哦,知道了,Google。哦,sudo apt install fcitx-libs-dev。好,继续:

cmake .

过了…

make -j4
手别抖不要惯性 sudo make install,不需要。
现在platforminputcontext目录下应该已经有了新鲜出炉的libfcitxplatforminputcontextplugin.so了,然后就好了:

sudo cp platforminputcontext/libfcitxplatforminputcontextplugin.so /opt/mendeleydesktop/plugins/qt/plugins/platforminputcontexts
再终端打开 Mendeley 试试 Fcitx 已经可以用了。不保险,直接鼠标点点点菜单找到 Mendeley 打开输入法还没挂,OK。

updated 27/6/209
如何生成的不管用, 就去网上下个
https://github.com/JackieMium/libfcitxplatforminputcontextplugin.so

解决mendeley不能输入中文的情况相关推荐

  1. linux qtcreator输入中文,linux下QtCreator无法输入中文的情况

    解决linux下QtCreator无法输入中文的情况 安装了QtCreator5.3.1后无法输入中文,确切的说是无法打开输入法.以前使用iBus输入法的时候没有这个问题,现在使用sougou输入法才 ...

  2. 解决oninput在输入中文时,会获取拼音的问题

    解决oninput在输入中文时,会获取拼音的问题 参考文章: (1)解决oninput在输入中文时,会获取拼音的问题 (2)https://www.cnblogs.com/sas1231/p/1047 ...

  3. docker mysql输入中文_Docker解决终端无法输入中文的问题

    前言: 某日在docker里搭建了一套MySQL服务,发现在MySQL命令行内无法输入中文 中文显示也以?代替,起初以为是MySQL字符集的问题 检查之后未解决问题,又退出到容器终端 发现同样不能输入 ...

  4. 解决Photoshop CS3 输入中文不能显示 输入文字不能显示 输入文字显示缓慢

    1.解决Photoshop CS3 输入中文不能显示 输入文字不能显示 输入文字显示缓慢 安装完PS3后,用"T"文字工具输入文字,无论是输入英文还是中文,总会显示缓慢,迟迟不能显 ...

  5. 解决libreoffice无法输入中文的问题

    灵感来源于解决wps不能输入中文的方法,我个人认为不能输入中文的原因是libreoffice没有调用fcitx. 首先确认: 你已经安装好了fcitx和输入法,且能在浏览器或其他地方使用 编辑/usr ...

  6. 解决dia无法输入中文问题

    解决dia无法输入中文问题 背景介绍 dia是一款小巧的基于GTK的矢量图形绘制程序,适用于Linux, Unix和Windows. 但是在使用的过程中,会遇到这样那样的问题,我就分享一个最近使用中遇 ...

  7. 解决linux下QtCreator无法输入中文的情况

    安装了QtCreator(Qt5.3.1自带版本)后无法输入中文,确切的说是无法打开输入法.以前使用iBus输入法的时候没有这个问题,现在使用sougou输入法才有的这个问题. 可以查看此文 http ...

  8. ubuntu解决微信无法输入中文

    1.安装deepin-wine环境 上 https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu 页面下载zip包,解压到本地文件夹,在文件夹中打开终端,输入 ...

  9. 解决input中输入中文过程中会触发input事件的问题

    问题描述: 监听文本输入框的input事件,在拼写汉字时会触发input事件,如下图: 需求: 选词完成后触发input事件,只触发一次. 解决办法: 通过查阅资料得知在输入中文(包括语音识别时)会先 ...

最新文章

  1. 扶梯正确使用_乘坐自动扶梯解释CSS浮动
  2. Ubuntu增加(swap)交换分区
  3. 宣布 Windows Azure 通过 PCI DSS 合规性验证并且 ISO 认证范围扩大,同时正式发布 Windows Azure Hyper-V 恢复管理器和其他更新功能...
  4. mysql数据库优化面试
  5. 小猴吃桃matlab,看图写话:小猴吃桃精彩选篇
  6. 学习Lucene.Net 2.1常用的一些网址
  7. 剑指Offer之逆序对问题
  8. uni-ap开发开发小程序 怎么使用阿里云播放器
  9. 你的计算机无法启动一键还原,电脑一开机就进入dos之家的一键还原硬盘版,无法进入系统...
  10. 计算机关机键是,电脑关机快捷键是什么
  11. 名士高罗佩:谁把狄仁杰推上了世界舞台?作家金满楼新浪博客
  12. Facebook的原罪与区块链的救赎
  13. Win10下配置PHP环境变量
  14. RocketMQ Message相关命令【实战笔记】
  15. 小码哥php教程,小码哥Java从0到高级工程师
  16. 夜晚怎么能不吃宵夜呢
  17. 儿子作恶,母亲受报应
  18. Excel批注教学:一键给多个单元格添加相同批注
  19. 顶点着色器和片段着色器的区别
  20. iOS模仿安卓Material Design的涟漪动画按钮

热门文章

  1. QLabel显示图像
  2. java lock代码写法_[代码全屏查看]-java lock的使用
  3. [iOS]自定义view使用xib
  4. react-router v4 路由规则解析
  5. Microsoft向高性能计算市场推出了新的Azure产品
  6. Xslt取节点集的指定位置记录的三种方法
  7. 读《企业应用架框模式》
  8. OpenCV-图像金字塔cv::buildPyramid
  9. 华为机试HJ24:合唱队
  10. 二次函数计算机课件,《二次函数的应用》课件