Skip to content
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

Linux / .NET8 doesn't find libglfw #1695

Open
MV10 opened this issue Jan 21, 2024 · 2 comments
Open

Linux / .NET8 doesn't find libglfw #1695

MV10 opened this issue Jan 21, 2024 · 2 comments

Comments

@MV10
Copy link
Contributor

MV10 commented Jan 21, 2024

Attempting to run my application under Linux (Debian 11 64-bit via WSL v2).
Published release build, .NET 8.0, OpenTK 4.8.2:

[09:57:56 ERR] TypeInitializationException: The type initializer for 'OpenTK.Windowing.Desktop.NativeWindowSettings' threw an exception.
[09:57:56 ERR] DllNotFoundException: Unable to load shared library 'glfw' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/home/jon/mhh/glfw.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.1/glfw.so: cannot open shared object file: No such file or directory
/home/jon/mhh/libglfw.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.1/libglfw.so: cannot open shared object file: No such file or directory
/home/jon/mhh/glfw: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.1/glfw: cannot open shared object file: No such file or directory
/home/jon/mhh/libglfw: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.1/libglfw: cannot open shared object file: No such file or directory

The GLFW library files are present:

jon@IG88:~/mhh$ ls -la lib*
-rw-r--r-- 1 jon jon 315328 Sep 25 13:56 libglfw.so.3.3
-rw-r--r-- 1 jon jon 298832 Sep 25 13:56 libglfw-wayland.so.3.3

The library is found and the program runs correctly if I install it via apt-get:

sudo apt install libglfw3
@MV10
Copy link
Contributor Author

MV10 commented Jan 21, 2024

After setting LD_DEBUG=true (thanks utkmaden...) this error is buried near the end of the output:

checking for version `GLIBC_2.14' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.9' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.4' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.3.4' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.7' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.17' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]
checking for version `GLIBC_2.34' in file /lib/x86_64-linux-gnu/libc.so.6 [0] required by file /home/jon/mhh/libglfw.so.3.3 [0]

/lib/x86_64-linux-gnu/libc.so.6: error: version lookup error: version `GLIBC_2.34' not found (required by /home/jon/mhh/libglfw.so.3.3) (fatal)

@utkumaden
Copy link
Collaborator

Linux and libc breakage

name a better duo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants