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
Problems with linking to SDL2 framework on OSX #539
Comments
|
I see that you closed this issue yet I have the same problem as described here. I hope if you find the solution that you'll share it with me. |
|
Hello Jonathan! Unfortunately I never got any response to this issue, and I never found a solution, so I got tired of it and closed it. But now I've re-opened it again. I wish you better luck! |
|
try |
|
@lundstroem, Thanks for reopening the issue. @Cobrand, I tried your suggestion but i got this error: |
|
maybe |
|
@jonathan-quarles I also encounted this problem when trying to run a toy project. I was able to make it work with this package configuration: |
|
It seems very similar with White-Oak/qml-rust#42. I have a success with my sample project as below.
|
|
I think you can close this. I had the same problem 2 days ago but this issue's previous posts led me to the answer, namely (at least in my case):
with
|
|
I feel like the fn main() {
#[cfg(any(target_os = "openbsd", target_os = "freebsd"))]
println!(r"cargo:rustc-link-search=/usr/local/lib");
#[cfg(all(target_os = "macos", feature = "use_mac_framework"))]
println!("cargo:rustc-link-search=framework=/Library/Frameworks")
}Isn't it? At least without that I can't run |
I'm trying to get it to work but every combination of "use_mac_framework" as described in the info results in error. I'm using SDL 2.0.4 and it's located at /Library/Frameworks/SDL2.framework
rustc version is 1.11.0 (9b21dcd6a 2016-08-15)
Cargo.toml:
cargo clean
cargo build
cargo test --features use_mac_framework
error: Package hello_sdl2 v0.0.1 (file:///Users/d/Documents/rust-workspace/hello_sdl2) does not have these features: use_mac_frameworkMaybe I'm missing something obvious, but any pointers would be helpful.
/ Harry
The text was updated successfully, but these errors were encountered: