File: INSTALL_WIN32.md

package info (click to toggle)
sdformat 9.3.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 5,708 kB
  • sloc: cpp: 42,166; python: 1,618; javascript: 704; ruby: 368; sh: 81; ansic: 37; makefile: 16
file content (42 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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

1. Unzip it in sdformat-ws.

1. Clone sdformat

        git clone https://github.com/osrf/sdformat

1. 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

1. 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.