Install on Windows

This documentation describes how to set up a workspace for trying to compile Gazebo on Windows. It does not actually work yet.

Important requirement: 30Gb free disk space

It is recommended to have at least 30 Gigabytes of disk space to host Gazebo sources together with all the dependencies and compilation artifacts.

Supported compilers

At this moment, compilation has been tested on Windows 7 and 8.1 and is supported when using Visual Studio 2013. Patches for other versions are welcome.


This installation procedure uses pre-compiled binaries in a local workspace. To make things easier, use a MinGW shell for your editing work (such as the Git Bash Shell with Mercurial), and only use the Windows cmd for configuring and building. You might also need to disable the Windows firewall.

  1. Make a directory to work in, e.g.:

    mkdir gz-ws
    cd gz-ws
  2. Download the following dependencies into that directory:

    1. freeImage 3.x, slightly modified to build on VS2013
    2. boost 1.56.0
    3. bzip2 1.0.6
    4. dlfcn-win32
    5. libcurl HEAD
    6. OGRE 1.9.0 rc1
    7. protobuf 2.6.0
    8. TBB 4.3
    9. zziplib 0.13.62
    10. zlib
  3. Unzip each of them in gz-ws.

  4. Also download Qt 4.8, using the link below, and unzip it into C:\Qt\4.8.6\x64\msvc2013:

    Qt 4.8.6

  5. Install cmake, make sure to select the "Add CMake to system path for all users" option in the install dialog box


  6. Install Ruby 1.9 or greater. During the install process make sure add Ruby to your system paths.


  7. Clone Ignition Math, Sdformat, and Gazebo:

    hg clone
    hg clone
    hg clone
  8. Open a regular Windows shell (Start->Run->"cmd"->enter), and load your compiler setup by copying and pasting the following line:

    "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
  9. In a Windows shell, configure and build Ignition Math

    cd ign-math
    hg up ign-math3
    # if you want debug, run configure Debug
    nmake install

    You should now have an installation of Ignition Math in gz-ws/ign-math/build/install/Release.

  10. In the same Windows shell, configure and build Sdformat

    cd ..\..\sdformat
    mkdir build
    cd build
    # if you want debug, run ..\configure Debug
    nmake install

    You should now have an installation of Sdformat in gz-ws/sdformat/build/install/Release or gz-ws/sdformat/build/install/Debug.

  11. In the same Windows shell, configure and build Gazebo:

    cd ..\..\gazebo
    mkdir build
    cd build
    # if you want debug, run ..\configure Debug
    nmake gzclient
    nmake gzserver
    nmake install

    Once this all works you should now have an installation of Gazebo in gz-ws/gazebo/build/install/Release or gz-ws/gazebo/build/install/Debug.



  1. Adjust all paths to load dll

    1. if in Debug

      cd gz-ws\gazebo\build ..\win_addpath.bat Debug

    2. if in Release

      cd gz-ws\gazebo\build ..\win_addpath.bat Release

  2. Create an ogre plugins.cfg file

    1. cd gz-ws\gazebo\build\gazebo
    2. If in Debug: Copy in the following into plugins.cfg and replace MYUSERNAME with your actual username

      # Define plugin folder
      # Define plugins
    3. If in Release: Copy in the following into plugins.cfg

      # Define plugin folder
      # Define plugins
    4. Copy this file into the gui directory

      copy plugins.cfg gui\
  3. Run gzserver

    gzserver.exe ..\..\worlds\


Just in case that you need to debug problems on Gazebo

Running gzserver

If you run into issues, use --verbose to get more information.

Running gzclient

If you run into issues, use --verbose to get more information. A known issue is that it does not run on VirtualBox 3.4, with Ubuntu 15.04 Host. The current theory is that it does not support off-screen frame buffering. It has been confirmed to work on VMWare Player with windws 7 guest and Ubuntu 14.04 Host. More details will be added as testing continues.

Building Ogre Examples

  1. Download OIS

  2. Compile OIS in Visual Studio Use the project in Win32/ folder

  3. Place OIS headers and libs into

    ogre-...\Dependencies\include ogre-...\Dependencies\lib ogre-...\Dependencies\bin

  4. Patch configure.bat inside ogre-1.8 to use


  5. Compile as usual

  6. Run the demo browser using:

    # copy OIS_*.dll into the bin directory ogre-...\build\bin\SampleBrowser.exe