# Building OpenSP

### Win32

Only Microsoft Visual C++ 6.0 is supported. Also, Perl 5 is required; the executable must be on your PATH.

To build on the command line, ensure that the directories containing `msdev` and `nmake` are in your path, typically by executing the command:

    path C:/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin;
        C:/Program Files/Microsoft Visual Studio/VC98/Bin;%path%

(all in one long line) then run the command:

    build-win32.bat

To build using the Visual Studio GUI, open the workspace `SP.dsw` and build the `Win32 Release` configuration of the `all` project. You must first do a command-line build, however, to get the perl-generated files.

#### Localized Win32 builds

The messages issued by the OpenSP programs have been translated (currently German and Swedish are supported). Although it is not yet possible to select the language at runtime under Windows, it is possible to select the language at build time. To do so, you have to set the variable `LANG` in `sp-generate.mak` to one of the following values:

- `en` for English (default)
- `de` for German
- `sv` for Swedish

After that you have to regenerate all `.rc` files.

### Unix

Use the autoconf support.