mysteryx93 / LibMpv-OpenGL

Cross-platform MPV video player for .NET and Avalonia with OpenGL implementation
MIT License
30 stars 4 forks source link

Using Hanumaninstitute. Libmpv. Avalonia wrapped in Ubuntu running error "Unable to load the DLL 'libmpv. 2'" #4

Open SerendipityMeteorite opened 8 months ago

SerendipityMeteorite commented 8 months ago

I in my avalonia project reference Hanumaninstitute LibMpv. Avalonia and Hanumaninstitute LibMpv in Windows can run normally, But I published to the Ubuntu or a copy of the project on Ubuntu running after an error Unhandled exception. System. DLLNotFoundException: Unable to load DLL 'libmpv.2 ' The specified module could not be found. I tried to copy the project into the /usr/lib/x86_64-linux-gnu directory with the same error. I try to copy the libmpv.so file in /usr/lib/x86_64-linux-gnu to the project directory, but the result is still unable to find 'libmpv.2', what is the solution. Snipaste_2024-03-11_11-45-25

mysteryx93 commented 7 months ago

These are the current search paths for Linux. Where is it actually located on your system?

MpvApi.RootPath, "/lib64", "/usr/lib64", "/lib", "/usr/lib"