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

A few of the examples don't work on my Intel MacBook #18

Closed
avrame opened this issue Jun 8, 2023 · 5 comments
Closed

A few of the examples don't work on my Intel MacBook #18

avrame opened this issue Jun 8, 2023 · 5 comments

Comments

@avrame
Copy link
Contributor

avrame commented Jun 8, 2023

fogshader and rlgl_solar_system give me this error:

Undefined symbols for architecture x86_64:
  "_SetCameraMode", referenced from:
      ___crystal_main in _main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with exit status 1: cc "${@}" -o /Users/avram/.cache/crystal/crystal-run-fogshader.tmp  -rdynamic -L/usr/local/Cellar/crystal/1.8.2/libexec/../../../../lib -lraylib -framework IOKit -framework Cocoa -framework OpenAL -framework OpenGL -lpcre2-8 -lgc -L/usr/local/Cellar/libevent/2.1.12/lib -levent -liconv

Also, sound_test was missing the raylib-cr dependency in it's shard.yml file.

@sol-vin
Copy link
Owner

sol-vin commented Jun 26, 2023

Hey might be fixed now, let me know. I needed to update the raylib bindings to the latest and I fixed all the examples as well.

@avrame
Copy link
Contributor Author

avrame commented Jun 29, 2023

Thanks @sol-vin, I pulled the latest but still get the same error, but the first line now says Undefined symbols for architecture arm64: instead of x86_64
I'm on an Arm Mac by the way, if that helps.

@sol-vin
Copy link
Owner

sol-vin commented Jun 29, 2023 via email

@ShawSumma
Copy link
Contributor

This looks like the raylib version installed on the system and the raylib version requred by raylib-cr are differnet. Can you try to build your own raylib library and install it. [This link(https://github.com/raysan5/raylib/releases/tag/4.5.0) should have a binary relevant to all macs.

@avrame
Copy link
Contributor Author

avrame commented Sep 18, 2023

Sorry for the delay on this, I have my MacBook again so I'll try to run the examples this evening.

@avrame avrame closed this as completed Feb 2, 2024
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