-
Notifications
You must be signed in to change notification settings - Fork 129
Compiling on Windows
On Windows, the recommended tool for compiling Qfusion is Microsoft Visual Studio. Visual Studio 2013 is officially supported version, and precompiled library files for it are available in the repository. Express version is supported.
If you're using Visual Studio 2015, make sure you have checked "Windows XP Support for C++" when installing the IDE.
Once you have installed Visual Studio, you need to install [CMake 3.3.2] (https://cmake.org/files/v3.3/cmake-3.3.2-win32-x86.exe). Newer version may not work at all.
In CMake GUI, set the source code folder to the source
folder in the repository, and the destination to an empty folder.
Then press Configure, select your Visual Studio version, choose "Use default native compilers", click Finish and then press Generate.
Recent versions of Visual Studio produce binaries that are incompatible with Windows XP.
After generating the project files, open the destination folder, and in a code editor, search for <PlatformToolset>
tag in all *.vcxproj
files. Append _xp
to the value of the XML elements. So, for example, for VS2013, <PlatformToolset>v120</PlatformToolset>
should become <PlatformToolset>v120_xp</PlatformToolset>
.
Open qfusion.sln
in the destination folder in Visual Studio, select the configuration (Debug or Release) and press F7 to build.
After building, you can get the binaries in the build
folder in source
.