Closed SakuragiJump closed 2 months ago
同样问题,期待解决
I was able to resolve this issue and can help if you share your build info. For starters, try the target string aarch64-linux-android
You would also be better off by linking to android ndk toolchain file. Guide at https://developer.android.com/ndk/guides/cmake#file. I have a sample repo at https://github.com/Abhishek8394/android-hf-tokenizers.
@Abhishek8394 thanks for your info, do you mind send a PR to the README to enhance build guide?
Sure, I'll make a PR.
when I want to build a aarch64 on x86_64 host,cargo build will not accept a optioin "--target aarch64-unknown-linux-gnu" and build a x86_64 one,so cross build will not work out。