Skip to content

Windows Compilation

Simon Judd edited this page May 8, 2015 · 6 revisions

Required Software

Microsoft Visual Studio is required to build SLADE3 in Windows. "Express" versions of VS can be downloaded from Microsoft for free. It may also be possible to compile SLADE3 using CodeLite in Windows, but the CodeLite project settings may have to be modified to do so. Visual Studio solution files are provided for VS 2005 and 2012. If you are using any version in between these two it should be fine to use the 2005 solution.

Required Libraries

To compile wxWidgets in Windows, you must open the wxWidgets solution file for the version of Visual Studio you have, select the Release build, and build the solution.

FreeImage comes with precompiled libraries for Windows, and you only need to setup Visual Studio to search the FreeImage 'Dist' folder for extra libraries and includes.

SFML comes with precompiled libraries for VS2008 and 2010 and 2012.

FluidSynth can be difficult to compile in Windows. For some instructions on compiling it, see here.

Setting up Visual Studio 2010+ for SLADE compilation

To compile SLADE, Visual Studio needs to know where to look for the various required libraries. In versions prior to 2010, it was possible to set up program-wide search folders for lib and header files. In VS2010+, this ability is gone, so you will need to set up some macros. The SLADE VS2012 solution is set up to take these into account, so once they set up it should compile fine.

The following macros are required to build the SLADE VS2012 solution:

Name Example Value
WXWIN C:\wxWidgets-2.9.5
SFML C:\SFML-2.0
FREEIMAGE C:\FreeImage
FLUIDSYNTH C:\fluidsynth-1.1.3-win32

To add the required environment variables, open the property manager tab, select 'Release | Win32', and double click the 'Microsoft.Cpp.Win32.user' file. This will bring up the user properties dialog.

Under the 'User Macros' section, click the 'Add Macro' button. Enter the name and value for the macro, and make sure the 'set as environment variable' checkbox is ticked.

Once all the macros have been entered, click 'OK' to close the properties dialog, then make sure to right click the 'Microsoft.Cpp.Win32.user' file and select save.

Latest Release: 3.2.4

Clone this wiki locally