You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DllNotFoundException OpenCvSharpExtern when running .NET MAUI on MacOS 15.1. If I run a simple App with Avalonia instead of MAUI everything works as intended.
Summary of your issue
DllNotFoundException OpenCvSharpExtern when running .NET MAUI on MacOS 15.1. If I run a simple App with Avalonia instead of MAUI everything works as intended.
I tracked the issue to
opencvsharp/src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs
Line 88 in 352c778
When ruuning MAUI on MacOS, IsUnix() returns False because MacCatalyst is not in the list on L188.
It should be an easy fix to add MacCatalyst to this List.
Environment
What did you do when you faced the problem?
Generate simple MAUI App by Rider, install OpenCvSharp & osx.runtime. Somewhere initialize OpenCv (eg. VideoCapture.FromCamera). Exception occurs during initialization of OpenCvSharp.
Example code:
Output:
What did you intend to be?
App and VideoCapture should start without any Exceptions.
The text was updated successfully, but these errors were encountered: