DllNotFoundException: tfliteextern in unity on MacOS
mmf007 opened this issue · comments
Hello!
When installing Emgu CV and Emgu TF Lite packages together in unity 2020.3.23 on MacOS. When running your example from Emgu.TF.Lite\Demo\MobilenetScene.unity an error occurs.
DllNotFoundException: tfliteextern assembly: type: member:(null)
Emgu.TF.Lite.TfLiteInvoke..cctor () (at Assets/Emgu.TF.Lite/Assets/Scripts/Emgu.TF.Lite/TFLiteInvoke.cs:494)
Rethrow as DllNotFoundException: Unable to load native binary. Please make sure a proper Emgu.TF.Lite.runtime.{platform} nuget package is added, or make sure the native binary can be found in the folder of the executable.
Emgu.TF.Lite.TfLiteInvoke..cctor () (at Assets/Emgu.TF.Lite/Assets/Scripts/Emgu.TF.Lite/TFLiteInvoke.cs:502)
Rethrow as TypeInitializationException: The type initializer for 'Emgu.TF.Lite.TfLiteInvoke' threw an exception.
MobilenetBehavior+d__6.MoveNext () (at Assets/Emgu.TF.Lite/Demo/MobilenetBehavior.cs:34)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17)
Tried to put everything in a new project. Same error.
Help me please.
Are you using unity 2020.3.23 with MacOS on apple silicon (arm64) or intel (x64)?
MacOS on intel (x64)
One Emgu TF Lite without Emgu CV works well.
Closing ticket now.