-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
The incorrect search path #152
Comments
After I temporarily modified build.rs locally, it now reports an error that it cannot find re2. Indeed, I also cannot find libre2.a under the entire Android folder locally. |
Can you run |
The hash value is 2ac381c55397dffff327cc6efecf6f95a70f90a1 |
Can ort be configured to neither statically link to onnxruntime nor dynamically link to onnxruntime? I want to call Rust code that uses ort in a Flutter project, and I can configure the Flutter project to dynamically link to onnxruntime. |
The question confuses me, but I think you might want the |
Thank you for your reply. I found that I must first compile onnxruntime into a dynamic library (by adding the parameter --build_shared_lib) to avoid missing re2. After modifying build.rs, now ort can successfully statically link onnxruntime and run on Android. |
I want to statically link onnxruntime for Android compilation on the Mac platform with ort, but I encountered an error saying:
"could not find native static library onnx"
I discovered that ort is searching for the path Android/_deps/onnx-build/Release, whereas onnx is actually located at Android/Release/_deps/onnx-build.
The text was updated successfully, but these errors were encountered: