Error while loading shared libs
Its-Kenta opened this issue · 2 comments
Its-Kenta commented
I wanted to mess about creating a CSpydr binding to Raylib which seems to work when using [link("raylib")]
as recommended.
When building the executable it seems to work and linker finds the shared lib, however. When trying to run the binary we're met with error:
./main: error while loading shared libraries: libraylib.so.450: cannot open shared object file: No such file or directory
While the shared libs are also present in the same dir as the executable.
Am I missing something here?
Its-Kenta commented
My bad.
LD was unaware of the path where the libs are located at.
Spydr06 commented
fyi, I just implemented pkg-config support, so errors like this should now be thrown at compile-time (or better: resolved)