17cupsofcoffee / tetra

🎮 A simple 2D game framework written in Rust
MIT License
907 stars 63 forks source link

"static-link" doesn't work for "sdl2 0.35.2" on OSX #319

Open Im-Oab opened 2 years ago

Im-Oab commented 2 years ago

Summary

Hi, I am writing this for anyone with the same issue and looking for a solution to solve/avoid it.

Summary:

Buld the app with sdl2 = { version = "0.35.2", features = ["bundled", "static-link"] } on OSX Catalina will throw build error.

I think It is related to this issue https://github.com/Rust-SDL2/rust-sdl2/issues/1203

I work around it by changing the version to sdl2 = { version = "0.35.1", features = ["bundled", "static-link"] } sdl2-sys = "=0.35.1"

Steps to Reproduce

Build app on OSX (Catalina) with sdl2 = { version = "0.35.2", features = ["bundled", "static-link"] }

Additional Info

No response