To get MuJoCo up and running on your M-series Mac follow this tutorial.
Packages Required, install via terminal:
- Command line tools
xcode-select —install
- Homebrew - https://brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- CMake
brew install cmake
- GLFW
brew install glfw
MuJoCo M-Series Tutorial:
- Download the .dmg file: https://github.com/deepmind/mujoco/releases.
- Transfer MuJoCo app into Applications folder.
- Open MuJoCo app.
- Install MuJoCo:
- Open terminal window and clone the mujoco repository from GitHub:
git clone https://github.com/deepmind/mujoco.git
- Create a new build directory inside of the mujoco folder and cd into it.
mkdir build
cd build
- Configure:
cmake ..
- Build:
cmake --build .
- Install:
cmake --install .
- Open terminal window and clone the mujoco repository from GitHub:
- Download folder and insert inside of mujoco-X.X.X
git clone https://github.com/dtorre38/MuJoCo-Starter-Tutorial.git
- Navigate to the template folder:
cd mujoco/mujoco-X.X.X/MuJoCo-Starter-Template-Main
- To run via CMakeLists.txt:
cmake .
make
./main
- To run via run file:
chmod +x run_unix
./run_unix
- A MuJoCo window will appear and a ball will bounce. Congratulations, MuJoCo is running on your Mac!