-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[build] Shared library on OS X #328
Comments
Hi @define-private-public, when compiling as
I'm not an expert on OSX but try compiling with those libraries. Let me know if it works. |
Just implemented those changes on commit 8f569e5 |
Okay, I'll give it a whirl when I get home. |
The commit didn't make it build properly. It couldn't locate the .so file. I added As for building the examples, they didn't work off the bat either. I had to add that same They do run, but you need to run them from the root of |
Good & Bad news. Good: I was able to get an experimental binding for Nim working. Bad:
|
Wow! Thanks for the report! It's great you manage to compile and use it! Now I'm thinking how to integrate all those changes properly into Makefile... it seems a bit platform dependant... maybe the best option is just document it properly in the Wiki...
Probably you can just configure Sorry, I'm not an expert on OSX, maybe someone could provide more information on this topic... |
Actually, it is an issue with paths on OSX... Some info: https://stackoverflow.com/questions/27948093/include-search-path-on-mac-osx-yosemite-10-10-1 |
I don't know that much about |
Okay, I got a response from him:
|
this also might be relevant. |
Just closing as per #336. |
I'm working on some Nim bindings at the moment and I'm trying to test they work on OS X. I'm trying to work with raylib as a shared library. So When I clone the source and did
make SHARED_RAYLIB=YES PLATFORM=PLATFORM_DESKTOP
there were no.so
files in therelease/osx
folder.I noticed that around line
320
of thesrc/Makefile
that there was noifeq
clause forOSX
. So I added one in (by copy and pasting the one forLINUX
). It did get a bit farther, but then this error arose:I have
glfw3
3.2.1 installed from homebrew. The static library compiles just fine.The text was updated successfully, but these errors were encountered: