Closed mblaszczyk97 closed 2 years ago
Not familiar with IL2CPP or Unity to know whether there is anything that could/should be updated on the ORT side. I added a reply on https://forum.unity.com/threads/mono-build-works-but-il2cpp-throws-error.1210260/ so hopefully a Unity dev can provide some insight.
As per https://forum.unity.com/threads/mono-build-works-but-il2cpp-throws-error.1210260/ the issue was on the Unity side and will be fixed in an upcoming release.
@mblaszczyk97 Could you give me some ideas about how to install Onnxruntime NuGet into Unity? Thanks in advance!
@mblaszczyk97 Could you give me some ideas about how to install Onnx Runtime NuGet into Unity? Thanks in advance!
Hey. I was not responsible for compilation of Unity app but as far as I know Onnx Runtime library was compiled as any other additional library in C# for Unity. We used this blogpost - Add AI to mobile applications with Xamarin and ONNX Runtime and the newest NuGet package of Onnx Runtime. Hope this helps.
@mblaszczyk97 Thank you!
Describe the bug I'm using microsoft onnxruntime C# NuGet package with Unity. When I build app for android with Mono, it works as intended but if i change it to IL2CPP, following error happens:
Urgency None
System information
To Reproduce
options.AppendExecutionProvider_Nnapi();
Expected behavior APK build is corectly loading OnnxRuntime library.