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