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

error building android on MacOS #675

Open
kernelkind opened this issue Jan 24, 2025 · 0 comments
Open

error building android on MacOS #675

kernelkind opened this issue Jan 24, 2025 · 0 comments

Comments

@kernelkind
Copy link
Member

$ cargo apk build -p notedeck_chrome
...
   Compiling egui_virtual_list v0.5.0
   Compiling urlencoding v2.1.3
   Compiling tracing-logcat v0.1.0
error: library kind `framework` is only supported on Apple targets

error: could not compile `nostrdb` (lib) due to 1 previous error
Error: Command `AR_aarch64-linux-android=/Users/redacted/Library/Android/sdk/ndk/28.0.12916984/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar CARGO_ENCODED_RUSTFLAGS=-Clink-arg=--target=aarch64-linux-android23\u{1f}-L\u{1f}/Users/redacted/Documents/GitRemotes/notedeck/target/cargo-apk-temp-extra-link-libraries CARGO_TARGET_AARCH64_LINUX_ANDROID_AR=/Users/redacted/Library/Android/sdk/ndk/28.0.12916984/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=/Users/redacted/Library/Android/sdk/ndk/28.0.12916984/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang CC_aarch64-linux-android=/Users/redacted/Library/Android/sdk/ndk/28.0.12916984/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang CFLAGS_aarch64-linux-android=--target=aarch64-linux-android23 CXXFLAGS_aarch64-linux-android=--target=aarch64-linux-android23 CXX_aarch64-linux-android=/Users/redacted/Library/Android/sdk/ndk/28.0.12916984/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ cargo build --target aarch64-linux-android --package notedeck_chrome` had a non-zero exit code.

Could this error be related to this flag?

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

1 participant