-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Package]: 编译了libime和fcitx5-chinese-addons如何传至仓里 #22121
Comments
I have tried to compile fcitx5-chinese-addons package but I can not compile its dependency libime. The later one requires some tools which need to be built for host x86_64. The libime tools requires fcitx5 and dependencies. |
非常简单,下载分别下载libime源码和 kenlm源码. git clone https://mirror.ghproxy.com/https://github.com/kpu/kenlm.git,然后将kenlm源码里面kenlm目录下的文件复制到libime-1.1.9/src/libime/core/kenlm,然后编译安装。很简单的。 |
没有那么复杂,先编译安装libime包,然后编译fcitx5-chinese-addons,但编译fcitx5-chinese-addons的时候要注意在主要的Cmakelist.txt中屏蔽一下qt6-qtwebengine |
编译fcitx5-chinese-addons 主CMakeList.txt中添加 find_package(ECM REQUIRED 1.0.0) 修改后是这样的:
|
你可以参考并试试
------------------ 原始邮件 ------------------
发件人: "termux/termux-packages" ***@***.***>;
发送时间: 2024年11月7日(星期四) 下午3:47
***@***.***>;
***@***.******@***.***>;
主题: Re: [termux/termux-packages] [Package]: 编译了libime和fcitx5-chinese-addons如何传至仓里 (Issue #22121)
I have tried to compile fcitx5-chinese-addons package but I can not compile its dependency libime. The later one requires some tools which need to be built for host x86_64. The libime tools requires fcitx5 and dependencies.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
从QQ邮箱发来的超大附件
libime和fcitx5-chinese-addons.zip (186.06M, 2024年12月08日 15:53 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?t=exs_ftn_download&k=6e38623662323bc0353621711231561b404c065406050551150e5254551c5d0c0c094f55040205190c59530e5504560d0959015034106458515a0b5b518ba9525b51164e011c075c51560745511c05505c570c451a4b0d443805&code=88b641d4
|
fcitx5-chinese-addons 里面涉及的 |
因为qt6-qtwebengine 没有相关的包 |
The issue is not about that. The termux packages are cross compile for 4 CPU architectures (aarch64, arm, x86, x86_64) but the host platform is x86_64 Ubuntu. So, the build failed with |
你缺少src/libime/core/kenlm/lm/build_binary_main.cc.o 这个文件,这个源于kenlm源码,去下载kenlm源码,替换到libime相应目录里面 |
libime源码中,kenlm里面没有源码,这个需要到kenlm仓中下载,将kenlm源码放进去,然后直接编译libime即可,不需要编译kenlm |
close |
The issue is not solved yet. I've built the packages without dictionary files. I'll try to add the packages. |
dictionary files will be downloaded automatically when build libime |
I have added the required packages in the aforementioned pull request. Those do not have dictionary files yet. I have copied them from ArchLinux packages. Here is the result in mousepad text editor in xfce4. I can not figure out how to add dictionary files with the cross compilation. Please feel free to add necessary changes in a pull request. |
Why is it worth to add this package?
需要中文输入法,目前已经编译并安装libime和fcitx5-Chinese-addons,需要递交到x11-repo代码仓
Home page URL
https://fcitx-im.org
Source code URL
https://github.com/fcitx/fcitx5-chinese-adsons
Packaging policy acknowledgement
The project is actively developed.
The project has existing packages and is "well known".
Licensed under an open source license.
Not available through a language package manager: pip, npm, cpan, cargo, etc.
Not taking up too much disk space (< 100MiB per architecture, exceptions can be made)
Not duplicating the functionality of existing packages.
Not serving hacking, malware, phishing, spamming, spying, ddos functionality.
I certify that I have read Termux Packaging Policy and understand that my request will be denied if it is found lacking.
Additional information
No response
The text was updated successfully, but these errors were encountered: