-
Notifications
You must be signed in to change notification settings - Fork 34
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
System.DllNotFoundException: libveldrid-spirv #5
Comments
Something like this file is needed for mono to work automatically: https://github.com/mellinoe/veldrid/blob/master/src/Veldrid.SDL2/build/net40/Veldrid.SDL2.targets |
I included a build targets file in the latest version (1.0.8) that should fix this. |
@mellinoe this doesn't seem to work. I'm now getting a compile error:
For some reason it seems to try finding the spirv dylib in the sdl2 directory? |
It looks like your NuGet package somehow got messed up. Can you delete the |
Doesn't help. |
@tzachshabtay Sorry about this, there's definitely a problem with how Veldrid.SDL2 and Veldrid.SPIRV interact when they are both referenced from a mono project. Additionally, there's a problem with Veldrid.SDL2 4.5.0 that has been fixed in 4.6.0 that interferes with osx-x64 detection. The root problem is that both NuGet packages try to define the same |
Veldrid.SDL2 4.6.1 and Veldrid.SPIRV 1.0.9 both include fixes to ensure that they won't cause build property collisions anymore. Upgrading one or both should solve your issue. Sorry for the slow fix here; please let me know if anything else is not working correctly. |
I can confirm that it's working properly now, thank you. |
I'm still facing this issue. I'm using Rider on mac. Here's my package.config:
I worked around by copying the .dylib from the .nuget directory. |
Update iOS deployment workflow to generate framework bundles
Similar story to: veldrid/veldrid#24 (comment)
Running with mono on mac, and I'm getting:
Worked around it for now by copying the file manually from
~/.nuget/packages/veldrid.spirv/1.0.7/runtimes/osx-x64/native/libveldrid-spirv.dylib
The text was updated successfully, but these errors were encountered: