pixels: minimal-sdl2 - Could not retrieve any SDL2 window info on Ubuntu 19.10

$ cargo run --example minimal-sdl2 --features="minimal-sdl2"
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/examples/minimal-sdl2`
thread 'main' panicked at 'Could not retrieve any SDL2 window info, and Osspial wrote the trait to be infallible despite that clearly not always being the case, so now you got this panic. https://github.com/rust-windowing/raw-window-handle/issues/new', /home/roman/.cargo/registry/src/github.com-1ecc6299db9ec823/beryllium-0.1.2/src/window.rs:152:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Dep installed with:

sudo apt install libsdl2-dev

Should I install something else? I have found this links:

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 28 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry I missed this. Works great with the new version of beryllium, thank you! @parasyte

@willcrutchley @rofrol If either of you would like to try, please update beryllium to the current HEAD of the master branch:

diff --git a/examples/minimal-sdl2/Cargo.toml b/examples/minimal-sdl2/Cargo.toml
index dae1a53..0d6984b 100644
--- a/examples/minimal-sdl2/Cargo.toml
+++ b/examples/minimal-sdl2/Cargo.toml
@@ -10,7 +10,7 @@ optimize = ["log/release_max_level_warn"]
 default = ["optimize"]

 [dependencies]
-beryllium = { version = "0.3.1", features = ["extern_crate_raw_window_handle"] }
+beryllium = { git = "https://github.com/Lokathor/beryllium.git", rev = "9375bbd2dbc8c35d5f669181a9d525315f20ba40", features = ["extern_crate_raw_window_handle"] }
 env_logger = "0.7.1"
 log = "0.4.8"
 pixels = { path = "../.." }

Lokathor was kind enough to add the SDL version.