1,584
edits
DrinkyBird (talk | contribs) (Add VS 2015 download instructions) |
DrinkyBird (talk | contribs) (Add instructions for VS 2022) Tag: Source edit |
||
Line 3: | Line 3: | ||
You will require Visual Studio to compile Zandronum. Officially, Zandronum is built with Visual Studio 2015, but people have had success building it with newer versions. | You will require Visual Studio to compile Zandronum. Officially, Zandronum is built with Visual Studio 2015, but people have had success building it with newer versions. | ||
=== Download Visual Studio | === Download Visual Studio 2022 === | ||
Zandronum requires the Visual Studio 2015 toolchain to be built. Microsoft no longer offers 2015 for (easy) download, but forunately, modern versions of Visual Studio can use older toochains. | |||
<ol> | |||
<li>Download [https://visualstudio.microsoft.com/downloads/ Visual Studio 2022 Community].</li> | |||
<li>In the installer, select the '''Desktop development with C++''' module. | |||
[[File:Vs2022 cppdevel.png|none]]</li> | |||
<li>On the right-hand pane, under the '''Desktop development with C++''' section, select the '''MSVC v140 - VS 2015 C++ build tools (v14.00)''' component. | |||
[[File:Vs2022 v140.png|none]]</li> | |||
<li>Proceed with the installation.</li> | |||
</ol> | |||
== CMake == | == CMake == | ||
Line 16: | Line 24: | ||
http://www.nasm.us/ | http://www.nasm.us/ | ||
For | For Visual Studio 2015 or newer, the latest nasm version is required. Currently, this is [http://www.nasm.us/pub/nasm/releasebuilds/2.11.08/nasm-2.11.08.zip Version 2.11.08]. | ||
== FMOD Ex == | == FMOD Ex == | ||
Line 96: | Line 104: | ||
Only available with the keyboard drivers from [http://www.logitech.com/ Logitech] hardware. | Only available with the keyboard drivers from [http://www.logitech.com/ Logitech] hardware. | ||
= Build using Visual Studio | = Build using Visual Studio = | ||
== Generate Projects == | == Generate Projects == | ||
Open CMake (<code>cmake-gui</code>) and set the ''Where is the source code'' textbox to where you downloaded the Zandronum source code. Set ''Where to build the binaries'' to wherever you want the project files to be generated. | Open CMake (<code>cmake-gui</code>) and set the ''Where is the source code'' textbox to where you downloaded the Zandronum source code. Set ''Where to build the binaries'' to wherever you want the project files to be generated. | ||
Click ''Configure'' and | Click ''Configure'' and a dialog will pop up. | ||
[[File:Vs2022 cmake.png|thumb]] | |||
* Set the generator to '''Visual Studio 17 2022'''. | |||
* Set the platform to '''Win32''' for a 32-bit build or '''x64''' for a 64-bit build. | |||
* Set the toolset to '''v140_xp'''. | |||
If it says there was an error, ignore it as we will solve it now. | If it says there was an error, ignore it as we will solve it now. | ||
Line 133: | Line 147: | ||
== error LNK1281: Unable to generate SAFESEH image == | == error LNK1281: Unable to generate SAFESEH image == | ||
When using | When using Visual Studio 2015 or newer, update to the latest nasm version. | ||
[[Image:PSVSBuild_Safesehno.png|thumb|right]] | [[Image:PSVSBuild_Safesehno.png|thumb|right]] |