p9fj35fl6/Gazebo_exercise/thirdparty_pkg/sdformat/INSTALL_WIN32.md

1.4 KiB

Installation on Windows

This documentation describes how to set up a workspace for trying to compile sdformat on Windows.

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.

Installation

Totally experimental, using pre-compiled binaries in a local workspace. To make things easier, use a MinGW shell for your editing work, and only use the Windows cmd for configuring and building.

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

     mkdir sdformat-ws
     cd sdformat-ws
    
  2. Download boost into that directory:

  3. Unzip it in sdformat-ws.

  4. Clone sdformat

     hg clone https://bitbucket.org/osrf/sdformat
    
  5. Load your compiler setup, e.g. (note that we are asking for the 64-bit toolchain here):

     "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
    
  6. Configure and build sdformat:

     cd sdformat
     mkdir build
     cd build
     ..\configure
     nmake
     nmake install
    

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

    Once this all works (which it does with tender love and care): you should now have an installation of sdformat in sdformat-ws/sdformat/build/install/Release.