Burn-RL examples not compiled because of SDL dependency
#4,683 opened on Mar 27, 2026
Repository metrics
- Stars
- (15,550 stars)
- PR merge metrics
- (PR metrics pending)
Description
Feature description
Bring back the RL examples from the burn-rl crate, disabled by default from builds here https://github.com/tracel-ai/burn/blob/ed72d2b125a364aff18aed2a53396c128e01cb42/Cargo.toml#L19
This is disabled because of the outdated dependency https://github.com/MathisWellmann/gym-rs/pull/14
This does not build on modern linux e.g. arch linux, where CMAKE and SDL included by sdl-sys are very out of date and do not compile.
Feature motivation
Build on RL example with more implementations e.g. https://github.com/yunjhongwu/burn-rl-examples
(Optional) Suggest a Solution
Remove rendering by removing sdl feature, e.g. https://github.com/yunjhongwu/burn-rl-examples/issues/54
or change dependency to modern fork e.g. https://github.com/MathisWellmann/gym-rs/pull/14
I have done this in a fork https://github.com/tracel-ai/burn/compare/main...johnny-smitherson:burn:rl-examples-fix