-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to run on macos using blazor provides missing dll issue #240
Comments
Did you see #189 (comment) ?
You could try to install the |
Thanks, for quick reply. Yes I tried various combinations such as netvips and netvips.native only. netvips native and arm64 version at the same time. Only arm64 version, neither works. Here is the full error: Exception has occurred: CLR/System.DllNotFoundException Exception thrown: 'System.DllNotFoundException' in NetVips.dll: 'libvips.so.42' If that helps I had similar issue with MagickNet until I added this to my csproj Just to reiterate this is blazor hybrid project (so basically maui + blazor) |
On macOS, it should look for If that works, it seems that the wrong NetVips DLL for Linux (from the |
I updated it to the newest versions but I seem to be getting the same issue. To clarify the target is maccatalyst. I don't think you can target macOS directly on blazor hybrid. Unless I am missing something. |
It appears that this issue is related to dotnet/runtime#104160. As a workaround, you could try symlinking or renaming Additionally, I'm uncertain whether NetVips, or any other that relies on unmanaged/native code, would function correctly in a Blazor Hybrid environment. It's probably unsupported in Blazor components, as P/Invoke isn't natively supported there. |
@justasxz Are you able to test commit 8308801? Testing can be done by using the nightly version of NetVips. Add the <packageSources>
<add key="netvips-nightly" value="https://ci.appveyor.com/nuget/net-vips" />
</packageSources> And update NetVips to 3.0.0 (build number 605 - prerelease). |
Hmm, looking at graph TD;
unix --> unix-x64 & ios & unix-arm64;
unix-x64 --> ios-x64;
unix-arm64 --> ios-arm64;
ios --> ios-x64 & maccatalyst & ios-arm64;
ios-x64 & maccatalyst --> maccatalyst-x64;
ios-arm64 & maccatalyst --> maccatalyst-arm64;
|
I would for sure be able to, I greatly appreciate your effort to add support to maccatalyst. But you just responded that you doubt it would work. Do you want me to test it or wait for another commit ? |
Feel free to test that commit; hopefully it will now look for Support for iOS (and .NET MAUI) is being tracked in issue #154. |
@justasxz Were you able to make any progress with this? |
Hi, sorry it was put on hold for a bit, I will get back to it when I can. I was having trouble downloading the preview version (never done it, and following tutorials, adding the link you provided into .nuget file did not allow me to pick preview version, might be me not knowing how to, might be just visual studio code, not working as intended), and then some other things came up with higher priority. Should come back with an answer in a few weeks if I get it working. |
I'm removing the triage label as I lack access to a macOS (or iOS) device, making it difficult to debug further. |
Hi,
So I am trying to build the application (that already runs on windows) on mac, it builds successfully everything seems to work, but when the application opens up it throws netvips.dll exception. Is there any fix to this ? I have all the native-arm packages installed. It only fails when it tries to run netvips code, it functions normally besides that. I am running VS Code blazor hybrid
The text was updated successfully, but these errors were encountered: