mlc-ai/tokenizers-cpp

Can't support cross build on Linux

SakuragiJump opened this issue · 5 comments

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。

同样问题,期待解决

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?