Running base program with dotnet returns an error about raylib and does not run.
See original GitHub issueI’m on Linux and I just installed the .NET libraries to try to do this competition. Being on Linux, I couldn’t install Visual Studio so I just had to use vscode. I built and ran the program with dotnet, but it failed to run and printed this error:
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'raylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libraylib: cannot open shared object file: No such file or directory at Raylib_cs.Raylib.SetTraceLogCallback(IntPtr callback) at ChessChallenge.Application.Program.Main() in /home/cbates/Chess-Challenge/Chess-Challenge/src/Framework/Application/Core/Program.cs:line 23
Thanks for the help!
Issue Analytics
- State:
- Created 2 months ago
- Reactions:2
- Comments:6
Top GitHub Comments
Actually I fixed it, what I did is manually built raylib from https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux (I followed the section titled Build raylib using CMake), moved EVERY file ending in .so (in my case it was libraylib.so which was linked to libraylib.so.450 which was linked to libraylib.so.4.5.0 which actually had the module in it) into the Chess-Challenge/bin/Debug/.net6.0 directory. After that the program ran fine! Hopefully this helps anyone on Linux without Visual Studio who’s encountering this bug.
No problem, I’m glad I could help. Apologies for not saying where the libraylib.so files were located. Another comment already answered, but I got them from /usr/local/lib, as instructed by one of the comments in the Linux build and run instructions, (https://github.com/SebLague/Chess-Challenge/discussions/3#discussioncomment-6516407). Now I feel better that other people had the same issues as me, and I wasn’t making a simple mistake.