最近为了搞定 draftsight 2017 1 版,在网上查了好几周的资料也没有解决了。但是我
http://www.fcitx-im.org 找到了原因,因为 draftsight 绑定的是 draftsight 自己的 qt 库。
同时也提供了解决办法的线索,但是因为自己的智商问题,没能解决。
今天我翻墙去 google 查看到了解决加法。
———
Ok it’s an app bundle with its own qt, so it’s not surprise it doesn’t work with
systems fcitx qt5 plugin.
I tried to analyze the path and library it used, seems it can work with xenial’s
fcitx-qt5.
You can try to get two required files from libfcitx-qt5-1 and fcitx-frontend-qt5
and put them under :
/opt/dassault-systemes/DraftSight/Libraries/libFcitxQt5DBusAddons.so.1
/opt/dassault-systemes/DraftSight/QtPlugIns/platforminputcontexts/libfcitxplatforminputcontextplugin.so
I can use fcitx in draftsight on my system.
It works. Thank you very much.
———
我将上面的方法给修改了一点, 首先安装libfcitx-qt5-1 and fcitx-frontend-qt5 . 然后通过find找到上面提到的两个文件, 然后通过ln -s 做软连接到上面文件所提到的内容. 这样做的好处是, 如果上面提到的两个文件包作了更新, 我们也能使用新的文件.
http://www.supermew.top/?p=1010
经过多日来的努力, 现在已经解决了draftsight 2018
真对draftsight 2018的解决办法:
1)安装完成 draftsight 2018后,
2)到 https://packages.ubuntu.com/ 上去下载 xenial(也就是ubuntu 16.04)的 libfcitx-qt5-1 和 fcitx-frontend-qt5 两个包, 记住一定要用xenial的包, 因为draftsight 2018所使用的qt库的版本比较低不与qt最新库兼容。目前最新的qt库是5.9, 但是draftsight 2018使用的还是5.5的老库。
3)然后抽取这两个包中的libFcitxQt5DBusAddons.so.1 和 libfcitxplatforminputcontextplugin.so 放到上面提到的相应位置。
4)到 http://www.baidu.com/link?url=AFKUpJrR0 ... 055a5201ce 去下载 jasPer-2。4, 并编译将其中的libjasper.so.4.0.0 复制到 /opt/dassault-systemes/DraftSight/Libraries/ 目录下, 并且生成连接为 libjasper.so.1采用如下命令
代码: 全选
ln -s libjasper.so.4.0.0 libjasper.so.1
代码: 全选
export QT_DEBUG_PLUGINS=1
export QT_LOGGING_RULES="*.debug=true"
cd /opt/dassault-systemes/DraftSight/Linux/
Draftsight&& 2>~/1.txt
cd ~
vim 1.txt
6) 当所有的库都加载成功后, 重启电脑, 然后进行draftsight 2018就能使用fcitx输入法了。