Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Linux] GLFW/SDL native library not loaded #652

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

Closed
marius-klimantavicius opened this issue Oct 23, 2021 · 0 comments · Fixed by #661
Closed

[Linux] GLFW/SDL native library not loaded #652

marius-klimantavicius opened this issue Oct 23, 2021 · 0 comments · Fixed by #661
Assignees
Labels
Milestone

Comments

@marius-klimantavicius
Copy link

Summary

On linux the simplest sample fails because windowing platform fails to load native library.
Ultz.Native does place .so file, but it is under runtimes/linux-x64/native however the default path resolvers does not check this path.

Steps to reproduce

  • Platform: Desktop/Linux
  • Framework Version: .NET 5
  • API: GLFW
  1. Created a new .net5 project (I was using Rider for that)
  2. Added Silk.NET reference
  3. Copied sample code from https://github.com/dotnet/Silk.NET/blob/main/examples/CSharp/OpenGL%20Tutorials/Tutorial%201.1%20-%20Hello%20Window/Program.cs

The application fails to run.

Comments

I get exception: The currently bound window platform(s) only support views, instead of windows. Use the view APIs instead.
After some debugging I narrowed it down to inability to load glfw library even though it is available at output runtimes/linux-x64/native/libglfw.so.3.

If I set LD_LIBRARY_PATH=runtimes/linux-x64/native then I can run the example.
However I think that the default loader could also check this directory for native libraries.

@marius-klimantavicius marius-klimantavicius added the bug Something isn't working label Oct 23, 2021
@HurricanKai HurricanKai added this to the 2.X milestone Oct 23, 2021
@Perksey Perksey self-assigned this Nov 1, 2021
Perksey added a commit that referenced this issue Nov 4, 2021
Perksey added a commit that referenced this issue Nov 5, 2021
* Build improvements & dynamic Windows SDK resolution (backport from 3.0)

* Changes to some code formatting

* Fix build errors

* Fix build error

* Enhanced typedef-powered renaming

* Fix #652

* Marshal generic pointers in COM vtable wrapper functions

* String generation improvements (fixes #630)

* Sanity check, remove JetBrains.Annotations
Perksey added a commit that referenced this issue Mar 25, 2022
* Build improvements & dynamic Windows SDK resolution (backport from 3.0)

* Changes to some code formatting

* Fix build errors

* Fix build error

* Enhanced typedef-powered renaming

* Fix #652

* Marshal generic pointers in COM vtable wrapper functions

* String generation improvements (fixes #630)

* Sanity check, remove JetBrains.Annotations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants