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

Error while loading shared libs #14

Closed
Its-Kenta opened this issue May 6, 2023 · 2 comments
Closed

Error while loading shared libs #14

Its-Kenta opened this issue May 6, 2023 · 2 comments

Comments

@Its-Kenta
Copy link
Contributor

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
Copy link
Contributor Author

My bad.
LD was unaware of the path where the libs are located at.

@Spydr06
Copy link
Owner

Spydr06 commented May 6, 2023

fyi, I just implemented pkg-config support, so errors like this should now be thrown at compile-time (or better: resolved)

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

No branches or pull requests

2 participants