Building Windows

You do NOT have to build the game engine to play or create games. Building is only required for Linux distribution maintainers or those having a special use case.

Install Visual Studio Community Edition. Then open the solution file vs/dragengine.sln. You can then launch the build of the entire solution. NuGet pulls the necesdsary packages. External dependencies are contained inside the source and automatically unpacked for you.

Only 64-bit Release builds are officially supported.

Cross-Compiling

Cross-Compiling is no more officially supported. Build on a Windows machine instead.

Install MinGW 64-Bit cross-compiler for your system or use a docker image with it.

To build use the same commands as outlined in the [linux build page](/dragengine/building/linux/ but append tools=mingw64 to the command line like this:

scons tools=mingw64 archive

Always use a build target otherwise scons tries to install into your linux system using windows path names.

The “build_windows.sh” script is a little helper.

To build the windows installers you need a docker image supporting the InnoSetup compiler. You can build the docker image yourself using the windowsSetupCompiler.dockerfile docker file:

docker build --file=windowsSetupCompiler.dockerfile --tag=compile-windows-installer .

To build the installer first build the archives using

scons tools=mingw64 archive

Then change into the installer/windows directory and run

./create_installer.sh

The installer is now located inside installer/windows/build

It should be possible to build the sources also on a windows machine using Windows MinGW-64. VisualStudio compile is not supported officially.