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

Incorrect library name on linux (and possibly osx) breaks linkage. #12

Open
Wazubaba opened this issue Aug 7, 2020 · 3 comments
Open

Comments

@Wazubaba
Copy link

Wazubaba commented Aug 7, 2020

On linux, normally all libraries are prefixed with lib, so you need to alter your RLAPI pragma to look like this:

const PEXT* = when defined(windows):""
elif defined(macosx):"This I'm not sure, you'll have to ask an osx user"
else:"lib"
{.pragma: RLAPI, cdecl, discardable, dynlib: PEXT & "raylib" & LEXT.}

otherwise linking to the raylib library will be difficult.

@Guevara-chan
Copy link
Owner

Guevara-chan commented Aug 11, 2020

OK, I guess we need some Mac* user here and I gonna implement it.
(so, libraylib.dll is liblibraylib.so under Linux ?)

@Wazubaba
Copy link
Author

Wazubaba commented Aug 12, 2020

No, just libraylib.so, but if you omit the lib prefix it won't be found properly by nim, that's why I suggested the PEXT addtion for linux.

Edit: Actually.. I think this might be my mistake, sorry. I think I edited my local copy of raylib.nim trying to see if I could figure out why 3D wasn't working on linux and spaced it, my bad. I do however see that a fresh download of raygui.nim is missing that lib prefix though.

@Tuatarian
Copy link

On my WSL ubuntu installation, it's libraylib.so

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

3 participants