Yet Another Robot Platform
Installing YARP on Windows

Installation on Windows

Install from binaries

We provide precompiled binaries for Visual Studio compilers. Download and execute the installer from this page Download YARP.

You are now ready to check you installation, see Check your installation.

Install from sources

Instructions in this page allows you to build YARP from sources. This allows getting the most recent version of the code from the repository or a specific snapshot. The following sections will guide you step by step in the compilation process.

Getting dependencies

We recommend you follow the procedure described below, which will install precompiled binaries for almost all the required dependencies. Download the YARP installer according to the compiler you use from this page (Download YARP). Execute the YARP installer. Disable the YARP tick and proceed with the installation.

Pick installation directory, all dependencies will be installed in separate folders in this directory:

Alternatively you can compile all dependencies yourself following the procedure here: YARP Dependencies (notice however that this can be tedious, time consuming and error prone).

Setting up development environment

To compile YARP from sources, you need a C++ compiler.

On Windows, you can download Visual Studio 2017 Community Edition from the Microsoft website.

Besides the C++ compiler you also need the following tools.


Get the latest release from: http://cmake.org/cmake/resources/software.html. Execute the installer and follow the instructions, no special actions are required.


There are some competing git solutions for Windows. Among them we recommend

Learning git: to get sources you don't need to understand git in detail (just follow our instructions). If you are willing to learn more there are many useful guides available on the internet. Checkout this page to learn more (http://wiki.icub.org/wiki/Learning_more_about_git).

Getting the sources

To get the source choose one of these addresses:

For example:

cd /home/user
git clone https://github.com/robotology/yarp.git

Create YARP project files

  • Run the CMake GUI.
  • Point the entry "Where is the source code" of the GUI to the root directory where you have downloaded YARP (i.e. /home/user/yarp).
  • Choose a directory that will store the binaries and the project files. Usually this directory is /home/user/yarp/build. This is YARP's build directory.
  • Click on the button "Configure". Select the compiler you would like to use. CMake will normally select the correct compiler (WIN64 is not supported yet). Make sure the compiler matches the precompiled binaries you have installed.

Choose the following options:

YARP_COMPILE_libYARP_math, set to ON

(leave default values as they are unless you know better)

the availability of YARP_COMPILE_GUIS and YARP_COMPILE_libYARP_math require you have installed the libraries qt5 and eigen3 (you have, if you have followed the instructions above).

Project files generation is an iterative process, hit "Configure" until the option "Generate" becomes available. Then hit "Generate" and quit. Note: CMake uses red bars to highlight new options, these are not necessarily errors and can be ignored.

You can optionally change CMAKE_INSTALL_PREFIX, this is the directory where you would like to install YARP (default is C:/Program Files/YARP).
Do not select other options unless you know what you are doing.


Now we are ready to compile. Go to the build directory (i.e. /home/usr/yarp/build) and open the visual studio solution file (YARP.sln). In this order:

  • Select Debug configuration and build the target ALL_BUILD.
  • Select Release configuration and build the target INSTALL.

Setup your environment

  • Set the environment variable YARP_DIR so that it points to the installation directory you have chosen (e.g. C:/Program Files/YARP). Set YARP_DATA_DIRS to YARP_DIR%/share/yarp.
  • Add to the PATH environment variable the paths of the directories bin and lib within the installation directory you have chose (i.e. C:/Program Files/YARP/bin and C:/Program Files/YARP/lib).

You are now ready to check you installation, see Check your installation.