Skip to content
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

折腾了一天,贴一个展示 #19

Open
uuhan opened this issue Dec 29, 2023 · 5 comments
Open

折腾了一天,贴一个展示 #19

uuhan opened this issue Dec 29, 2023 · 5 comments

Comments

@uuhan
Copy link

uuhan commented Dec 29, 2023

non-ascii

我重新做了一个 librime-api 的绑定, 把 librime 的源代码通过 cmake 包直接封装到 crate 中了,这样编译起来就方便了,而且全是静态链接,可以直接放编译好的二进制包给大家用,也可以直接通过:

cargo install rime-ls

安装,目前只测试了 macos 和 linux 下的,再测测晚点发布到 crates.io 上去。😁

@wlh320
Copy link
Owner

wlh320 commented Dec 29, 2023

很强!编译这块我确实一直想搞来着,可以看看能不能把这部分工作贡献给 https://github.com/lotem/librime-sys

@uuhan
Copy link
Author

uuhan commented Dec 29, 2023

很强!编译这块我确实一直想搞来着,可以看看能不能把这部分工作贡献给 https://github.com/lotem/librime-sys

你可以看看,librime-api

不太好提给他pr,因为构建过程完全不同。而且 librime 的编译开关还是挺复杂的,得再研究研究,目前的只能说够用。

我会基于这个包给其他项目做一些输入法的支持,再研究研究。

@cxwx
Copy link

cxwx commented Apr 14, 2024

mark,坐等 crates.io 发布。
homebrew动态库一更新就GG了

@cxwx
Copy link

cxwx commented Apr 14, 2024

似乎rime_api.h头 和lib 必须放在/usr/home 底下,自定义LD_LIBRARY等环境变量无效。

@rainzm
Copy link
Contributor

rainzm commented Apr 15, 2024

编译完了之后用install_name_tool -add_rpath /path/to/lib MyExecutable给编译后的rime可执行文件增加rpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants