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

android build fail for missing i686-linux-android-ranlib #188

Open
tkkcc opened this issue Apr 11, 2023 · 2 comments · May be fixed by #196
Open

android build fail for missing i686-linux-android-ranlib #188

tkkcc opened this issue Apr 11, 2023 · 2 comments · May be fixed by #196

Comments

@tkkcc
Copy link

tkkcc commented Apr 11, 2023

no problem with 111.24

[[package]]
name = "openssl-src"
version = "111.24.0+1.1.1s"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3498f259dab01178c6228c6b00dcef0ed2a2d5e20d648c017861227773ea4abd"
dependencies = [
 "cc",
]

with 111.25,

[[package]]
name = "openssl-src"
version = "111.25.2+1.1.1t"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "320708a054ad9b3bf314688b5db87cf4d6683d64cfc835e2337924ae62bf4431"
dependencies = [
 "cc",
]

got this error

/home/bilabila/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar: warning: creating libcrypto.a
/bin/sh: line 1: i686-linux-android-ranlib: command not found
/home/bilabila/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar: warning: creating libssl.a
/bin/sh: line 1: i686-linux-android-ranlib: command not found
/bin/sh: line 5: i686-linux-android-ranlib: command not found
make: *** [Makefile:313: install_dev] Error 127
thread 'main' panicked at '

there is no i686-linux-android-ranlib in ndk 25.2, 25.1 or 24.0

@ErikBjare
Copy link

ErikBjare commented Sep 24, 2023

I worked around this by setting RANLIB_$target: https://github.com/ActivityWatch/aw-server-rust/blob/378e8e811fb11110cf3b519ed93001817848061e/compile-android.sh#L54

Where target is e.g. aarch64_linux_android

@likfe
Copy link

likfe commented Oct 23, 2023

try my solution #182 (comment)

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

Successfully merging a pull request may close this issue.

3 participants