-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is org.k2fsa.sherpa.onnx v1.10.17 supporting Android Xamarin? #1241
Comments
please find our sherpa_onnx package on pub.dev for flutter. |
Please describe this step in detail Also, please post all of the error logs |
hello! here steps:
But real error examined via dlimport/dlerror is "dlopen failed: library "libpthread.so.0" not found: needed by /data/app/~~roWPFky3a7zFKDoAAw0VVA==/Dictation.Client-m1pLIjGpo753L8FT3uZF5Q==/lib/x86_64/libsherpa-onnx-c-api .so in namespace clns-6". So it can't import libsherpa-onnx-c-api .so because of importing transitive dependency "libpthread.so.0". dlerror output and c# exception stacktrace are all my error logs (: So my main question is how to link "libsherpa-onnx-c-api.so" from flutter build to nuget package for c# if i wanna build package from source via your scripts? Today I got the idea to link "libsherpa-onnx-c-api.so" from flutter build with a different name and imort via custom import resolver, but dunno if that works. |
Hi there!
I'm trying to embed sherpa in an android application using c# xamarin. org.k2fsa.sherpa.onnx v1.10.17 package works well on windows and linux. On Android there is a problem with creating OnlineRecognizer. While importing libsherpa-onnx-c-api.so I am getting DllNotFoundException. Using dlimport and dlerror, I found out that the error was in importing the transitive dependency libpthread.so.0. As far as I know there is no libpthread.so.0 in android, hence this libsherpa-onnx-c-api.so is not android oriented.
dlerror output - "dlopen failed: library "libpthread.so.0" not found: needed by /data/app/~~roWPFky3a7zFKDoAAw0VVA==/Dictation.Client-m1pLIjGpo753L8FT3uZF5Q==/lib/x86_64/libsherpa-onnx-c-api .so in namespace clns-6"
I tried to write a minimal application in flutter - it works. I took libsherpa-onnx-c-api.so from this build and linked it to my project, but it didn't work.
Will org.k2fsa.sherpa.onnx package support xamarin in the future?
Can you give instructions on how to link the required libsherpa-onnx-c-api.so assembly when building the nuget-package for xamarin from sources?
The text was updated successfully, but these errors were encountered: