Loading shared library on Android Maui fails
So I've been following this https://learn.microsoft.com/en-us/xamarin/cross-platform/cpp/ and have got the project setup and available here https://github.com/SineVector241/OpusSharp
I then packed it into a nuget library and just added it into the maui application, However when I try to run it, it fails due to
[monodroid-assembly] Shared library 'libopus-share.so' not loaded, p/invoke 'opus_encoder_create' may fail
.
Could anyone point me in the right direction on how to fix this?Use C/C++ libraries with Xamarin - Xamarin
Visual Studio for Mac can be used to build and integrate cross-platform C/C++ code into mobile apps for Android and iOS, using Xamarin and C#. This article explains how to set up and debug a C++ project in a Xamarin app.
GitHub
GitHub - SineVector241/OpusSharp: Ported version of the Opus codec ...
Ported version of the Opus codec with multiple native architecture compilations. - SineVector241/OpusSharp
1 Reply
Nvm figured it out, My .so file was corrupted.