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

使用luarocks 安裝的dynamic library 無法 requrie #313

Open
shewer opened this issue Feb 14, 2024 · 1 comment
Open

使用luarocks 安裝的dynamic library 無法 requrie #313

shewer opened this issue Feb 14, 2024 · 1 comment

Comments

@shewer
Copy link
Contributor

shewer commented Feb 14, 2024

在librime-lua(使用 系統lua 5.4) script 錯誤訊息是 找不到 lua_gettop
在 terninal 下的lua 的 require ok

目前是手動 下載 luarock package
把 so 檔案重新link gcc -shared -llua ..... 才正常

@hchunhui
Copy link
Owner

重新link也算是一种方法。

另一种是需要在载入 librrime-lua 时,采用 RTLD_GLOBAL 模式,见:
https://github.com/hchunhui/ibus-rime.AppImage/blob/ae63bda26fc238ca0a0d6b8372c2a3f0e2b806ac/patches/librime/relocatable-plugins.patch#L10

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

2 participants