tracel-ai/burn

Burn-RL examples not compiled because of SDL dependency

Offen

#4.683 geöffnet am 27.03.2026

 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Rust (964 Forks)auto 404
accessibilityexamplehelp wanted

Repository-Metriken

Stars
 (15.550 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide