flutter-rust-ffi icon indicating copy to clipboard operation
flutter-rust-ffi copied to clipboard

note: ld: error: unable to find library -lgcc

Open xiaoheiai4719 opened this issue 4 years ago • 4 comments

when i use make all = note: ld: error: unable to find library -lgcc clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error

error: could not compile example-rs

To learn more, run the command again with --verbose. make: *** [target/aarch64-linux-android/release/libexample.so] Error 101

xiaoheiai4719 avatar Jun 28 '21 13:06 xiaoheiai4719

What platform are you running this on? Did you install and point to the right Android SDK/NDK build tools?

brickpop avatar Jun 29 '21 09:06 brickpop

Mac OS, i install the NDK from android Studio。and image image

xiaoheiai4719 avatar Jun 29 '21 11:06 xiaoheiai4719

version 22.1.7171670 is ok

xiaoheiai4719 avatar Jul 01 '21 10:07 xiaoheiai4719

Yes, looks like the version NDK version 23 will fail, try @xiaoheiai4719 suggestion.

alexandru-calinoiu avatar Feb 13 '22 15:02 alexandru-calinoiu