Building MuJoCo-rs
SkillDev toolsBuild the mujoco-rs library using the pre-downloaded MuJoCo shared library. Use this when asked to build or compile the project.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Building MuJoCo-rs skill
What this skill tells your AI
The instructions your AI receives, as published by davidhozic/mujoco-rs in .claude/skills/build/SKILL.md and read by ahel’s review.
Compile the library using a pre-downloaded MuJoCo shared library in the repository.
-
Check
Cargo.tomlfor the current MuJoCo version (look for+mj-X.Y.Zin the package version). Then find the matchingmujoco-X.Y.Z/directory at the repository root. -
Build the library (replace
X.Y.Zwith the version found in step 1):
export MUJOCO_DYNAMIC_LINK_DIR=$(realpath mujoco-X.Y.Z/lib) && export LD_LIBRARY_PATH=$(realpath mujoco-X.Y.Z/lib/) && cargo build --lib
- Verify that the exit code is 0 (success) - check the terminal output for errors.
[!NOTE]
- If
.sofiles are not found, readbuild.rsanddocs/guide/source/installation.rstto understand the linking options.- Read
Cargo.toml[features]section to discover available features.- To build with specific features:
cargo build --lib --no-default-features --features "feature1 feature2".- To build in release mode add
--release.MUJOCO_DYNAMIC_LINK_DIRmust be an absolute path (hencerealpath).
Signals
- GitHub stars
- 78
- Forks
- 10
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
build-davidhozic- Source
- github.com/davidhozic/mujoco-rs