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

termux构建失败 #8

Open
JuanZoran opened this issue Apr 19, 2023 · 11 comments
Open

termux构建失败 #8

JuanZoran opened this issue Apr 19, 2023 · 11 comments

Comments

@JuanZoran
Copy link

librime-1.8.5
Screenshot_2023-04-19-11-08-34-555_com termux

wlh320 added a commit that referenced this issue Apr 19, 2023
@wlh320
Copy link
Owner

wlh320 commented Apr 19, 2023

看起来是因为 Rust 在不同的平台下对 c_char 的定义不一样,我尝试修一下试试。
不过我手里没有 linux-aarch64 的设备,没法验证修得对不对,你可以试试最新的 commit

@JuanZoran
Copy link
Author

构建成功了, 但是貌似termux安装的librime没有/usr/share/rime-data

@wlh320
Copy link
Owner

wlh320 commented Apr 19, 2023

我不太清楚 termux 的打包方式,有可能在别的包里,比如 arch 里是 librime-data,一般会作为 librime 的依赖项

@JuanZoran
Copy link
Author

我去termux-package提个issue看看好了, 感谢

@wlh320
Copy link
Owner

wlh320 commented Apr 20, 2023

突然想到 rime-data 的内容应该是平台无关的,把其他 linux 下打的包解包到这个位置应该也能用,只是不太方便

@JuanZoran
Copy link
Author

已经给官方提issue了, 干脆等官方打包好了, 目前就是Termux无法输入中文有点难受

@JuanZoran
Copy link
Author

Termux-package 已经添加了librime-data的包, 貌似仍然存在问题
Screenshot_2023-04-23-00-09-33-763_com termux

@wlh320
Copy link
Owner

wlh320 commented Apr 23, 2023

看起来只打包了 rime-prelude 这个基础的配置,rime 默认提供的一些输入方案没有包括进去?感觉那些输入方案不打包也行,只要把自己需要用的方案放在 user_data_dir 里面就可以了。我比较推荐 rime-ice 这个,最近比较火,质量也不错,相比 rime 默认的方案来说,个人基本不再需要太多折腾了。

@JuanZoran
Copy link
Author

感谢, 我去试试

@wlh320
Copy link
Owner

wlh320 commented May 17, 2024

有进展吗?

@scillidan
Copy link

scillidan commented Dec 26, 2024

在树莓派5(Ubuntu 24.10 ARM/aarch64)上可以:

image

但我之前卸载了Termux环境,只在Termux里使用SSH连接树莓派来使用,所以没法测试。贴一下步骤:

audo apt install rustup librime-dev
rustup default stable
# rustup target add aarch64-unknowrustn-linux-gnu
git clone --depth=1 https://github.com/wlh320/rime-ls
cd rime-ls
cargo build --target aarch64-unknown-linux-gnu --release
ln -s ~/.cargo/tmp/aarch64-unknown-linux-gnu/release/rime_ls ~/.local/bin/
mkdir -p ~/.local/shera/rime-ls
git clone --depth=1 https://github.com/iDvel/rime-ice ~/.local/shera/rime-data

还有neovim配置(可能省略了一些行。需要自己参考这两个插件的说明去配置):

install.lua:

  { "wlh320/rime-ls" },
  { "liubianshi/cmp-lsp-rimels",
    config = function()
      vim.system({'/home/<username>/.local/bin/rime_ls', '--listen', '127.0.0.1:9257'})
    end
  },

setup.lua:

require("rimels").setup({
  keys = { start = ";f", stop = ";;", esc = "jj" },
  cmd = vim.lsp.rpc.connect("127.0.0.1", 9257),
  rime_user_dir = "/home/<username>/.local/share/rime-ls",
  shared_data_dir = "/home/<username>/.local/share/rime-data",
  max_candidates = 9
})

莫名奇妙的参数类型错误

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

3 participants