Open laszukdawid opened 2 years ago
I'm new to Rust and piston_window
so I'm not really sure what is the problem specifically. My guess is Xlib had some API update and that is incompatible with older version of piston_window
(this package uses 0.85.0). Updating to the newest version and fixing some code has fixed the issue. Here's the commit that introduces fix https://github.com/laszukdawid/rsnake/commit/5438ef559eb29b100595ff83d81cafa26a1ceca7.
I'm new to Rust development and thought that modifying snake would be a nice starting project.
Just cloned repo, downloaded dependencies, built it and tried to run. There wasn't any error on
cargo run
andcargo build --release
, only a few formatting warnings. When trying to run produced binary, I'm getting the error below. Any chance you could help figure out the issue?By the trace it seems the problem is with Xlib. Does it need to be in specific version? Is it even Ok for linux?
System: Ubuntu 20.04 (Linux meland 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux) Cargo: cargo 1.54.0 (5ae8d74b3 2021-06-22)
Backtrace: