Closed zjc664656505 closed 11 months ago
Would you mind trying out this: https://stackoverflow.com/questions/37617919/error-undefined-reference-to-android-log-write-error
Hi Junru,
Thanks for your kindly response.
I have checked this answer and don't think this approach works. Since my Android C++ backend already has the CMakeList.txt and I have already included the log lib in it, by configuring the Android.mk file will not solve my issue.
I have built the sentencepiece again, but still meet the same error under tokenizers-cpp in Android Studio, but still get the same error message.
Likely due to a missing dep of the log and working on getting the cmake log in your end, not sure how to debug further, maybe try different ways to link logs
Thanks for your reply. I find a way around. In sentencepiece, if we manually link logs with it in the sentencepiece/src/CMakeList.txt
, then it should work.
Original:
Modified:
I will close this issue since it's resolved.
Interesting! Thanks for sharing your workaround. Definitely something useful if anyone encounters this issue in the future
Dear mlc-ai developers,
Recently, I'm deploying the tokenizer to my android environment. I have successfully built the Huggingface Tokenizer. However, when I try to build the sentencepiece tokenizer I met this error:
Here is my CMakeList.txt under the
src/main/cpp
folder:I'm not sure why this error keeps coming up. I directly cloned this repo and the corresponding repo from sentencepiece and
Please let me know how to solve this issue.
Thanks a lot!