flutterust icon indicating copy to clipboard operation
flutterust copied to clipboard

link error

Open yueyedeai opened this issue 3 years ago • 2 comments

= 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.

yueyedeai avatar Nov 22 '21 07:11 yueyedeai

what is your platform? also do you have LLVM installed? besides, you should also make sure that you have NDK installed for android.

shekohex avatar Nov 22 '21 11:11 shekohex

@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.

antony-jr avatar Dec 11 '21 19:12 antony-jr