flutterust
flutterust copied to clipboard
link error
= note: ld: error: unable to find library -lgcc clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile adder-ffi
due to previous error
[2021-11-22T07:50:36Z INFO cargo_ndk::cli] If the build failed due to a missing target, you can run this command:
[2021-11-22T07:50:36Z INFO cargo_ndk::cli]
[2021-11-22T07:50:36Z INFO cargo_ndk::cli] rustup target install aarch64-linux-android
[cargo-make][1] ERROR - Error while executing command, exit code: 101
[cargo-make][1] WARN - Build Failed.
[cargo-make] ERROR - Error while running duckscript: Source: Unknown Line: 4 - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.
what is your platform? also do you have LLVM installed? besides, you should also make sure that you have NDK installed for android.
@yueyedeai This is a bug in cargo-ndk. Downgrade to Android NDK to Version 22.x to fix this. The bug comes in Version 23.