You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created a new android project and compiled with cargo tauri android build --apk -t armv7. Resulting error:
The following warnings were emitted during compilation:
warning: ring@0.17.8: Compiler family detection failed due to error: ToolExecError: Command "/nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang" "-E" "/home/bburdette/code/zknotes/taur-exper/src-tauri/target/aarch64-linux-android/release/build/ring-65f1925129321e0b/out/9794990528831506010detect_compiler_family.c" with args /nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang did not execute successfully (status code exit status: 127).
warning: ring@0.17.8: /nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory
warning: ring@0.17.8: Compiler family detection failed due to error: ToolExecError: Command "/nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang" "-E" "/home/bburdette/code/zknotes/taur-exper/src-tauri/target/aarch64-linux-android/release/build/ring-65f1925129321e0b/out/16758297065530334426detect_compiler_family.c" with args /nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang did not execute successfully (status code exit status: 127).
warning: ring@0.17.8: /nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory
warning: ring@0.17.8: /nix/store/p2cmbnlc7xp2mn4x7jc7qs369wjzp56k-androidsdk/libexec/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory
error: failed to run custom build command for `ring v0.17.8`
so there's a libc++.so.1 in my NDK_HOME, but its not for the aarch64 target. I'm assuming this is normal, and a libc++.so.1 shouldn't be a requirement for aarch64 compile.
[bburdette@HOSS:~/code/zknotes/taur-exper/src-tauri]$ cat Cargo.lock | grep ring
"string_cache",
"string_cache_codegen",
name = "string_cache"
name = "string_cache_codegen"
Reproduction
In an empty folder:
cargo tauri init
cargo tauri android init
cargo tauri android build --apk -t armv7
Expected behavior
Would expect an apk to be built...
Full tauri info output
[bburdette@HOSS:~/code/zknotes/taur-exper/src-tauri]$ cargo tauri info
WARNING: no lock files found, defaulting to npm
[⚠] Environment
- OS: NixOS 24.5.0 X64
✔ webkit2gtk-4.1: 2.44.1
✔ rsvg2: 2.57.0
✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
✔ cargo: 1.77.2 (e52e36006 2024-03-26)
⚠ rustup: not installed!
If you have rust installed some other way, we recommend uninstalling it
then use rustup instead. Visit https://rustup.rs/
⚠ Rust toolchain: couldn't be detected!
Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
- node: 18.19.1
- npm: 10.2.4
[-] Packages
- tauri [RUST]: 2.0.0-beta.19
- tauri-build [RUST]: 2.0.0-beta.15
- wry [RUST]: 0.39.5
- tao [RUST]: 0.28.0
- tauri-cli [RUST]: 2.0.0-beta.14
- @tauri-apps/api : not installed!
- @tauri-apps/cli [NPM]: 2.0.0-beta.14
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: static
- devUrl: http://0.0.0.0:8080/
[bburdette@HOSS:~/code/zknotes/taur-exper/src-tauri]$
gave it a try with tauri = { version = "2.0.0-beta.16", features = ["native-tls-vendored"] }. Still has the ring v0.17.8 dependency with libc++.so.1 missing.
Describe the bug
Created a new android project and compiled with
cargo tauri android build --apk -t armv7
. Resulting error:so there's a libc++.so.1 in my NDK_HOME, but its not for the aarch64 target. I'm assuming this is normal, and a libc++.so.1 shouldn't be a requirement for aarch64 compile.
libc++ in my ndk_home
No 'ring' package found in Cargo.lock:
Reproduction
In an empty folder:
cargo tauri init
cargo tauri android init
cargo tauri android build --apk -t armv7
Expected behavior
Would expect an apk to be built...
Full
tauri info
outputThe text was updated successfully, but these errors were encountered: