-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Windows installation
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 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
.
From the MSYS2 shell create these sub-directories in your home directory and clone the repository.
Note: instead of cloning https://github.com/omichel/webots.git, we recommend to create your own fork and clone it, so that you can commit your changes directly on it.
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
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.
src/install_scripts/msys64_installer.sh
If needed, follow these instructions to install optional dependencies.
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.