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

Make library work on OSX #1

Closed
rustomax opened this issue Aug 31, 2019 · 2 comments
Closed

Make library work on OSX #1

rustomax opened this issue Aug 31, 2019 · 2 comments

Comments

@rustomax
Copy link
Contributor

Great work on nim-libgd! I've tested this library on OSX and it works. The only adjustment that needs to be made is the procedure definition pragmas in libgd.nim should reference libgd.dylib library name instead of libgd.so, for instance

proc gdImageCreate(sx: cint; sy: cint): gdImagePtr {.cdecl, importc: "gdImageCreate", dynlib: "libgd.dylib".}

Could you write a compile-time check for this that injects appropriate library name?

Additionally brew install libgd will get the C library installed on OSX.

@rustomax
Copy link
Contributor Author

See PR [#2]

@mrhdias
Copy link
Owner

mrhdias commented Mar 10, 2021

Thank you for your help. I already committed the pull request.

@mrhdias mrhdias closed this as completed Mar 10, 2021
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