PCSX2 Documentation/Compiling on Windows: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
===Downloading the Prerequisites===
===Downloading the Prerequisites===
====Downloading build environment====
====Downloading build environment====
First you have to download a build environment. Microsoft Visual Studio 2015 and 2017 are capable of compiling PCSX2. At this time, the recommended build environment is Visual Studio 2015 Community, as Express does not support the ATL libraries used by GSdx (issue 970[https://github.com/PCSX2/pcsx2/issues/970]).
First you have to download a build environment. Microsoft Visual Studio 2019 and 2017 are capable of compiling PCSX2. At this time, the recommended build environment is Visual Studio 2019 Community.
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual Studio 2015 - Various Editions]
*[https://visualstudio.microsoft.com/downloads/ Visual Studio 2019 - Various Editions]


====Downloading additional prerequisites====
====Downloading additional prerequisites====
Line 14: Line 14:
*[http://nsis.sourceforge.net/Advanced_Uninstall_Log_NSIS_Header NSIS Advanced Uninstall Header] ''Only needed if you're compiling the Installer''
*[http://nsis.sourceforge.net/Advanced_Uninstall_Log_NSIS_Header NSIS Advanced Uninstall Header] ''Only needed if you're compiling the Installer''
A Visual C++ redistributable runtime matching the build environment major release (''Only needed if you're compiling the Installer''):
A Visual C++ redistributable runtime matching the build environment major release (''Only needed if you're compiling the Installer''):
*[https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable Packages for Visual Studio 2015]
*[https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Visual C++ Redistributable Packages for Visual Studio 2019 and 2017]
*[https://go.microsoft.com/fwlink/?LinkId=746571 Visual C++ Redistributable Packages for Visual Studio 2017]


===Installing Microsoft Visual Studio===
===Installing Microsoft Visual Studio===


Microsoft Visual Studio 2015 and 2017 are capable of compiling PCSX2. Depending on whether or not you develop professionally, as well as other factors, you may or may not have access to a copy of Microsoft Visual Studio Professional. This guide will cover the installation and configuration of Visual Studio 2015 Community and Visual Studio 2015 Express for Windows Desktop.
Microsoft Visual Studio 2019 and 2017 are capable of compiling PCSX2. Depending on whether or not you develop professionally, as well as other factors, you may or may not have access to a copy of Microsoft Visual Studio Professional. This guide will cover the installation and configuration of Visual Studio 2019 Community Windows Desktop.


====Installing Visual Studio Community 2015====
====Installing Visual Studio Community 2019====
Download Visual Studio Community 2015 installer from the link above, and run it.
Download Visual Studio Community 2019 installer from the link above, and run it.


#Choose the 'Custom' installation type.
#Run the installer.
#On the 'Select Features' screen, select everything under 'Programming languages -> Visual C++'. Everything else is optional.
#Within '''Workloads''' tab make sure '''Desktop development with C++''' is checked.
#I recommend keeping the default installation location. Click Install.
#I recommend keeping the default installation location. Click Install.
#The components will be downloaded to your computer.
#The components will be downloaded to your computer.
Line 31: Line 30:
#Once the installation has finished, you may be prompted to restart the system.
#Once the installation has finished, you may be prompted to restart the system.
#Click Restart Now or Close depending on your situation.
#Click Restart Now or Close depending on your situation.
====Installing Visual Studio Express 2015 for Windows Desktop====
Download Visual Studio Express 2015 for Windows Desktop installer from the link above, and run it.
#I recommend keeping the default installation location. Click Install.
#The components will be downloaded to your computer.
#Once done downloading, they will then be installed.
#Once the installation has finished, you will see the following screen.
#Click Restart Now
[[File:Vs-express-2015-0.png|frameless]]
[[File:Vs-express-2015-1.png|frameless]]
[[File:Vs-express-2015-2.png|frameless]]


===Installing SDKs===
===Installing SDKs===