question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running base program with dotnet returns an error about raylib and does not run.

See original GitHub issue

I’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:closed
  • Created 2 months ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
carsonetbcommented, Jul 23, 2023

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.

0reactions
carsonetbcommented, Jul 29, 2023

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - Raylib project stopped being able to run
Raylib project in visual studio was working perfectly fine, as in if you run the project it would execute and create a window...
Read more >
raylib headers - Page 4
I was able to run all the examples on Win 64, but only using raylib 2.6 dll. The 3.0 gives this error on...
Read more >
How to link raylib to Microsoft visual studio 2022?
The error is exactly the same. I have "C:\Users\CENSORED\source\repos\hello world\vcpkg\packages\raylib_x86-windows\lib;$(LibraryPath)" in ...
Read more >
Problem: Can't run programs : r/raylib
Once the program window pops up, nothing shows up in it and Windows immediately prompts the "has stopped working" error message.
Read more >
RingRayLib error
It should return either the "Success" or "Not-Success" message. The "nothing happens" may be another indication that something is wrong trying the find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found