-
Notifications
You must be signed in to change notification settings - Fork 4
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
Failed to build on macOS #7
Comments
Could you run the compile command in your shell to provide more helpful errors? |
I compiled it from the shell, here is what I got on Fedora
I manually compiled it by cloning the raylib repo and adding this to the previous
Not sure if it's the same error adrianbrink is getting, but I'm pretty sure I must have incompatible versions, which is surprising, I'm using the one from the dnf repo. I can try compiling and installing latest raylib. |
I got this error when loading;
This must be a version mismatch because I'm missing |
Please use the released 5.0 version of Raylib, which should work fine with the prebuilt branch. |
Thanks for the response. I checked out tag 5.0, built and installed, and I'm still getting the rcamera error as well as the GetMouseRay error. |
This is the command I'm running from SBCL + Sly (let ((arch "x86_64-pc-linux-gnu")
(path (merge-pathnames #P"lib/" (asdf:component-pathname (asdf:find-system '#:claw-raylib)))))
(dolist (lib '("raylib" "rlgl"))
(uiop:run-program
(list "gcc" "-O3" "-I/home/joe/Repositories/raylib/src/" "-fPIC" "-shared" "-o"
(namestring (merge-pathnames (format nil "lib~A-adapter.so" lib) path))
(namestring (merge-pathnames (format nil "lib~A-adapter.~A.c" lib arch) path)))))) I add the include directory since raylib isn't installing rcamera.h, and I also removed raygui since I haven't installed it either. |
Let's clarify this issue: the error occurs because the |
I can confirm that the |
Thank you for the help. I finally got around to trying again, first I fixed the rcamera issue by moving the header file there;
Then to fix the Now, when I run the Lisp code in step 3 to build the adapters, everything seems to compile;
However, when I try to load
Not sure what I did wrong. Here are the contents of
Let me know if there is any other information I can provide that would help with further debugging. Thank you for your time. Edit: I did not compile raygui into a shared object. I that step is needed, let me know. |
Also, is it possible to make raygui optional? I don't really wish to use it. |
Dependency on Raygui was made optional 6 months ago. Are you using the older version of |
I am currently on the prebuild branch
Any idea why I'm getting this error? |
For further debugging, please provide the filename being compiled at the REPL prompt, usually shown as |
I'm not sure what you mean, but I'll paste some output
And here is the backtrace
|
Let me think, this issue is somewhat strange because the |
@JosephFerano You can invoke the |
It seems to load now, however, it loads and the REPL hangs afterwards. I can't evaluate anything afterwards. Not even (+ 1 1). I have to kill -9 in order to kill the SBCL instance repl. Seems stuck in a loop. So I can't evaluate the basic window example or anything. |
Did you run SBCL with the |
Theoretically, now that the error occurs only when executing |
Ok, so I added this to my emacs config; (setq sly-lisp-implementations '((sbcl ("/usr/local/bin/sbcl" "--dynamic-space-size" "4096")))) The window loads! Great! Raylib hangs the REPL though, is there a way for me to let raylib continue running and still have access to the REPL so I can start making live changes to my game? I'm still getting the Thanks again for your help! I'm almost there. |
Run with |
I've never come across this issue. However, it's strongly recommended to clean the compilation cache and reload the system, or try another implementations to confirm whether the same error can be reproduced. |
See: #10 |
This is an old issue, but I'm trying to build on OSX right now and I'm running into an issue
I also had to manually build the adapters through gcc manually linking raylib, but I don't understand why this type error is cropping up. This happens when I |
digging into the :cffi code I can call
Looks like this is the call-site causing the initial type error?
|
Darwin xxx.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:11 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6020 arm64
andmacOS Sequioa 15.1
sbcl --dynamic-space-size 8192
prebuilt
branchraylib
withbrew install raylib
brew install llvm@18
and set the correct variables withI run
I get
Any idea how to debug this further?
The text was updated successfully, but these errors were encountered: