-
Notifications
You must be signed in to change notification settings - Fork 473
Bundled with static-link doesn't work on macOS #1187
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
Comments
I tried to build it myself, but I also got this warning with the linker:
Maybe this is a related issue: widelands/widelands#4679 |
I have similar issue and I'm using Mac M1. The compilation succeeds without "static-link" feature but fails when "static-link" (+"bundled") features are enabled. extern crate sdl2;
fn main() {
let _sdl = sdl2::init().unwrap();
} Only include "static-link" feature
Include both "bundled" & "static-link" features
|
Turns out it doesn't work on Mac OS at least in the latest rust-sdl2 version[1]. [1] Rust-SDL2/rust-sdl2#1187
I think this and #1241 are related. Not only is the crate not weakly linking CoreHaptics, it seems it's not linking it at all for static builds? |
I decided to try to fix the CHHaptic issue, but discovered it is already fixed on the current master (0c4fb75)! Somewhere between version 0.35.2 (b36d048) and now, it starts working. I've compiled both versions locally to make sure of it. I guess this might just be c80f7a4 and 278eda3 but I didn't check. So all that's needed is a new release. |
See the latest build status: https://github.com/Rust-SDL2/rust-sdl2/runs/4642055170?check_suite_focus=true
It's coming from #1186 , so probably a bug upstream, or a misconfig on our end
The text was updated successfully, but these errors were encountered: