-
Notifications
You must be signed in to change notification settings - Fork 345
Fix native dylib location on Mac #318
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
Conversation
|
this currently blocks usage of IMGUI on apple silicon. |
|
So far, the |
|
After testing in a similar manner to veldrid/veldrid-spirv#24, the |
|
Yes Please tell if just the first commit of this PR works on your machine, it was made with an Intel Mac. |
|
Good timing :P But this raises a question, why did it not work when I tested? |
|
I would be curious about your way of testing it, can you fill in the steps? for me I just created a local nuget package and referenced it on a fresh project, and the |
|
That is exactly what I did. |
|
As a sanity check, on a fresh console app project, can you reference this package and test with this code: // See https://aka.ms/new-console-template for more information
using Veldrid.SPIRV;
Veldrid.SPIRV.SpirvCompilation.CompileVertexFragment(Array.Empty<byte>(), Array.Empty<byte>(), CrossCompileTarget.MSL, new CrossCompileOptions());and see if it finds the native library or not? |
|
It does. But I figured out why In the output folder there is This does not really make sense in my mind... |
|
Well, I'm surprised as well, but at least it's discovered now. I think the latest changes can be reverted now and only keep the first two, yeah? |
This reverts commit fce0dc9.
|
Reverted and tested with fully clean project that it works. Its is possible that this may cause small issues with some users when updating, but I think that we can ignore that since clean output directory fixes this. Thanks @frenzibyte :D |
Currently ImGui.NET places native mac dylib to
runtimes/osx-universal, which is not a valid location for DllImport to load it.Imgui.NET 1.87.3 does not work with MacOs, without manually moving the
libcimgui.dylibto a correct location.This pr renames
osx-universaltoosx, which works with both Intel and Arm platforms.See also accepted names for
runtimesfolders: https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json