tracel-ai/burn

Burn-RL examples not compiled because of SDL dependency

Aperta

#4683 aperta il 27 mar 2026

 (2 commenti) (2 reazioni) (0 assegnatari)Rust (964 fork)auto 404
accessibilityexamplehelp wanted

Metriche repository

Star
 (15.550 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor