-
Notifications
You must be signed in to change notification settings - Fork 455
-
I'm trying to run tests on android targets with cross, and receiving this error:
CANNOT LINK EXECUTABLE "/target/aarch64-linux-android/debug/deps/minimap2-8341467521dd0ce7": library "libz.so" not found
This is happening on this branch: https://github.com/jguhlin/minimap2-rs/tree/android
Any ideas?
My build.rs script is here: https://github.com/jguhlin/minimap2-rs/blob/android/minimap2-sys/build.rs
Cross is working with musl targets and other architectures (really nice!)
Running `CARGO=/home/joseph/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_MANIFEST_DIR=/mnt/data/development/minimap2-rs CARGO_PKG_AUTHORS='Joseph Guhlin <joseph.guhlin@gmail.com>' CARGO_PKG_DESCRIPTION='Bindings to libminimap2' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=minimap2 CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/jguhlin/minimap2-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.20+minimap2.2.28 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=20 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/aarch64-linux-android/debug/build/hts-sys-d1ecc1ebcbebee48/out:/target/aarch64-linux-android/debug/build/minimap2-sys-8a23812aaa7834bf/out:/target/aarch64-linux-android/debug/deps:/target/aarch64-linux-android/debug:/home/joseph/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-linux-android/lib' /android-runner aarch64 /target/aarch64-linux-android/debug/deps/minimap2-8341467521dd0ce7`
CANNOT LINK EXECUTABLE "/target/aarch64-linux-android/debug/deps/minimap2-8341467521dd0ce7": library "libz.so" not found
linker: CANNOT LINK EXECUTABLE "/target/aarch64-linux-android/debug/deps/minimap2-8341467521dd0ce7": library "libz.so" not found
error: test failed, to rerun pass `--lib`
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment