You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not perfect but you compile rust-sdl2 using use-bindgen (make sure your local SDL2 is 2.0.18), an then copy sdl_binding.rs from target/sdl2-sys-xxxxx/sdl_bindings.rs to sdl2-sys/sdl-bindings.rs
I generated sdl_bindings.rs for SDL 2.0.18 using the use-bindgen feature and the SDL2_INCLUDE_PATH environment variable, but a compilation error occurred. It seems to be the same problem as rust-lang/rust-bindgen#1556, but the directly cause seems to be not specifying the proper whitelist.
I added only the necessary api's published by SDL2 to the whitelist, and the compilation was successful. This issue is mentioned in #1059 (comment) § Build issues with bindgen.
Hi,
SDL 2.0.18 has been published and includes a handful of extremely useful new methods, which I would love to use in my Rust program.
What's the procedure to update the SDL2 bindings in sdl2_sys? I'd be happy to open a PR for that if you wish!
The text was updated successfully, but these errors were encountered: