Skip to content

Windows installation

Olivier Michel edited this page Nov 30, 2018 · 75 revisions

It takes less than one hour on a fairly recent computer with a decent Internet connection to install all the dependencies and recompile Webots from the sources.

MSYS2 Development Environment and Git

MSYS2 is the primary development environment for Webots on Windows:

  • Install MSYS2 from https://msys2.github.io (select the 64 bit version and follow the instructions).
  • Install Git with pacman -S git.

Clone the Github Repository

From the MSYS2 shell create these sub-directories in your home directory and clone the repository:

git config --global credential.helper store
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global push.default simple
git clone https://github.com/omichel/webots.git
cd webots
git submodule init
git submodule update

Setup your bash profile

Append src/install_scripts/bash_profile.windows at the end of your ~/.bash_profile and check and edit the result:

cat src/install_scripts/bash_profile.windows >> ~/.bash_profile

Restart MSYS2.

Install the MSYS2 Dependencies

src/install_scripts/msys64_installer.sh

Install Optional Dependencies [ optional ]

If needed, follow these instructions to install optional dependencies.

Build Webots

You are now ready to compile Webots by typing make -jX where X represents the number of threads for a speedy multi-threaded compilation. For example, type make -j12 on a CPU with four cores and hyper-threading. make help displays additional targets for debugging, profiling, cleaning, etc.

Once compiled, type webots to launch it.

Clone this wiki locally