-
Notifications
You must be signed in to change notification settings - Fork 42
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
Prebuilt Binaries for Android Termux (aarch64) #145
Comments
@ayoubelmhamdi this should be possible. I've got the binary building in my branch here. Can you please tell me what the output of I'll need this to update the platform detection logic so the new binary can be downloaded automatically. |
:lua print(jit.os)
:lua print(jit.arch)
|
Okay, slight change of approach will be required. Some more testing is needed (sorry, I don't have an android device I can personally test on). Can you send the outputs of the following:
|
Never mind, I am your Android device tester. Don't be shy, ask me anything. :lua print(vim.fn.has('android') == 1)
:lua print(vim.inspect(vim.uv.os_uname())) {
machine = "aarch64",
release = "4.14.186-perf-g15987c3eee85",
sysname = "Linux",
version = "#1 SMP PREEMPT Thu Jul 18 08:05:25 UTC 2024"
} |
Thanks @ayoubelmhamdi! Looks like we can safely use I've pushed another release to my branch so we can test versioned binaries without affecting {
"scottmckendry/blink.cmp",
lazy = false,
version = "1.*",
opts = {},
} Important Make sure you check the repo name and version. These need to be set exactly as above to test the new binary correctly. If you've already got the main branch installed via Lazy, you'll need to remove it and add it again to fix the error when changing Let me know how it goes! If you encounter any errors, please post them here. |
it's seem that everything install correctly, however the first keystroke give me this error:
|
$ ldd target/release/libblink_cmp_fuzzy.so
libdl.so => /system/lib64/libdl.so libc.so => /system/lib64/libc.so
ld-android.so => /system/lib64/ld-android.so $ ld target/release/libblink_cmp_fuzzy.so
ld: warning: cannot find entry symbol _start; not setting start address
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_isstring'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_setmetatable
'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushfstring'ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushinteger'ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_gettable'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushvalue'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_xmove'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_createtable'ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_touserdata'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushcclosure
'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_insert' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushthread'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_tothread' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_gettop'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_typename' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_newuserdata'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushlightuse
rdata'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_getstack'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_rawseti'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushboolean'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_settable'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_settop' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `luaL_getmetafiel
d'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_rawget'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pcall'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_checkstack'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_topointer'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_concat'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_rawequal'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_toboolean' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_newthread' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_next'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_getinfo'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_getallocf'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_error' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_type'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_replace'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_isnumber'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_rawset'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `luaL_callmeta'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_remove'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushlstring'ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_rawgeti' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_tolstring' ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `luaL_error'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_tonumber'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushnumber'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_getmetatable'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `lua_pushnil'
ld: target/release/libblink_cmp_fuzzy.so: undefined reference to `luaL_ref' |
Possibly a missing build flag. I've updated the cargo config to match the Linux settings and pushed another release, any difference? You might need to re-install it again. The output of |
Prebuilt Binaries for Android Termux (aarch64)
Currently, prebuilt binaries for
blink.cmp
are not available forAndroid Termux on aarch64
architecture. This forces users on this platform to build from source, which requires the nightly Rust toolchain.Issues with Building from Source:
Installing the nightly Rust toolchain on Termux can be challenging and error-prone. Users frequently encounter issues related to dependencies and build tools.
Feature Request: Provide prebuilt binaries for Android Termux (aarch64) to eliminate the need for a nightly Rust toolchain and simplify installation and usage for users on this platform. This will significantly improve accessibility for Termux users and expand the plugin's user base.
The text was updated successfully, but these errors were encountered: