如何编译安装fcitx-handwriting? #1078
Replies: 3 comments
-
debug的结果是那个stroke对象为NULL.我看到代码里有通过fprintf(stderr, 写些日志的,但fcitx-handwriting进程的0,1,2文件都是/dev/null. 我应该如何设置才能看到输出的日志呢? |
Beta Was this translation helpful? Give feedback.
0 replies
-
fcitx-handwriting 貌似是由dbus启动的.
Readme里有关于zinnia手写库安装位置的,我用的gentoo包默认安装的,估计不行. |
Beta Was this translation helpful? Give feedback.
0 replies
-
它从未被 port 到 fcitx 5 过,而且当年也只是一个 demo 的状态 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我想找一个开源的手写识别输入法学习下, 找到了 https://github.com/fcitx/fcitx-handwriting
我尝试编译:
mkdir build
cd build
cmake ..
结果如下:(之前报错说找不到fcitx提示我设置Fcitx_DIR变量,我设置到了fcitx4/cmake目录,我checkout的tag是4.2.0)
CMake Warning (dev) at CMakeLists.txt:1 (project):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Fcitx (missing: FCITX4_VERSION)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/home/guyuming/fcitx4/cmake/FcitxConfig.cmake:89 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:7 (find_package)
这个提示里FCITX4_VERSION咋回事?
更新: 我觉得前面的错误可能和机器上装的fcitx5版本有关系,于是我卸了fcitx5, 自己参照fcitx4.2.9.8.ebuild自己改成fcitx4.2.5版本
https://gitee.com/guyuming76/suckless_wl_zh/blob/master/app-i18n/fcitx/fcitx-4.2.5.ebuild
并安装,然后删掉 fcitx-handwring/build目录重建重新编译,cmake成功了,make报如下错误:
我一开始就看到了这个链接:
fcitx/fcitx-handwriting#1
但当时没明白.我今天照着这个做果然就编译成功了.
并且make install 之后,运行fcitx可以看到手写输入的窗口,以及窗口里的诸如ABC,123按钮.但是我按任意按钮,或者在手写框里面用笔记本触摸板(应该和鼠标效果一样吧),那个手写窗口就消失了.但fcitx本身还可以用,还可以切换到拼音输入汉字.用带debug参数编译的fcitx,但也没看到啥提示信息.
我窗口管理器用的是xorg下的DWM
Beta Was this translation helpful? Give feedback.
All reactions