You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this falls into one of the gaps in .NET Core's handling of P/Invoke. In early versions (targetting Mono & .NET Fx) the difference in library names was handled by DllMap entries in the executable config; that is no longer possible in Core, so I'm not 100% sure how to fix it.
I could switch the library name to "glfw" and rename all the DLLs in the examples, but that seems hacky and likely to break existing Windows code.
I could remove direct P/Invoke and use some kind of NativeLibrary shim to load per-platform, but that would be a decent chunk of work and a breaking change to the API.
There is DllMap support coming in .NET Core, possibly as soon as 3.0, but that's an uncertain wait.
The best option would be a dll map like mechanic. On linux, it's possible to create a symbolic link to target glfw3 name. That's maybe the best alternative for now.
I've tested SharpVK on linux, to have it working (debian 10):
After these two simple steps, HelloTriangle works.
The text was updated successfully, but these errors were encountered: