-
Notifications
You must be signed in to change notification settings - Fork 187
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
Does not compile on Mac M1 Silicon / Arm64 architecture #487
Comments
Hey dl1ely, thanks for taking up OrbTk for a m1 based system. Anyway, the lock clearly reference the missing symbols in libsdl2_sys (rust wrapper), that will consult the system sdl2. Maybe the sdl2 version on your silicon has an older release version or the linke can't find the shared library? |
Hi Ralf, thanks for your kind reply. I am new to the apple platform. Unfortunately i am lacking the skills to debug such problems on my own. No idea what i am missing here and how to fix it. Perhaps someone else with experience in these kind of issues can shed a light in the future, when M1 based systems become more widespread. Thank you so far! |
you can try to add a fn main() {
println!("cargo:rustc-link-lib=framework=CoreHaptics");
} |
This works and works on M2 Apple Silicon. |
Thanks @tanzhenghao-james; this is good to know. I'm not experienced enough to rule out, if that build.rs snippet should be added automatically if installation detects mac silicon? Anyone else? The CoreHaptics framework seems to be an opt in for Apple devices .... |
Sorry for delay. Since we depends on rust-sdl2 and they depends on CoreHaptics, it would be better to let they address this issue. On the other hand, I'm using intel Mac and also encountering this error so it's more related to OS rather cpu arch. |
Describe the bug
Orbtk does not compile an a M1 Mac.
To Reproduce
On a M1 Mac:
Expected behavior
Orbtk should compile and the minimal example should run.
Is the readme missing something specific for M1 Macs? I also did
brew install sdl2
- no change.README says
If you have trouble build the provided OrbTk examples or simply don't want to use a C compiler, please check the backend section. It contains alternatives.
- no idea whatthe backend section
is.The text was updated successfully, but these errors were encountered: