PCSX2 Documentation/Compiling on Windows: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:


===Downloading the Prerequisites===
===Downloading the Prerequisites===
===Downloading build environment===
====Downloading build environment====
First you have to download a build environment. At this moment the recommended build environment is Visual Studio 2013 Express for Windows Desktop.  
First you have to download a build environment. At this moment the recommended build environment is Visual Studio 2013 Express for Windows Desktop.  
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual Studio 2013 Express for Windows Desktop]
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual Studio 2013 Express for Windows Desktop]
Line 14: Line 14:
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual C++ 2010 Express]
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual C++ 2010 Express]
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual Studio 2010 Express All in One]
*[http://www.visualstudio.com/downloads/download-visual-studio-vs Visual Studio 2010 Express All in One]
===Downloading additional prerequisites===
====Downloading additional prerequisites====
*[http://www.microsoft.com/en-us/download/details.aspx?id=6812 DirectX SDK (June 2010)]
*[http://www.microsoft.com/en-us/download/details.aspx?id=6812 DirectX SDK (June 2010)]
*[http://git-scm.com/downloads Git For Windows aka. msysgit] ''Recommended but not required - though you will need a Git client''
*[http://git-scm.com/downloads Git For Windows aka. msysgit] ''Recommended but not required - though you will need a Git client''
*[http://7-zip.org/ 7-zip] ''(Optional) Helps avoid unnecessary software from being dropped by DirectX SDK installer''
*[http://nsis.sourceforge.net/Download Nullsoft Install System (Optional)] ''Only needed if you're compiling the Installer''
*[http://nsis.sourceforge.net/Download Nullsoft Install System (Optional)] ''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''
*[http://nsis.sourceforge.net/Advanced_Uninstall_Log_NSIS_Header NSIS Advanced Uninstall Header] ''Only needed if you're compiling the Installer''
*[http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en Visual C++ 2008 SP1 Redistributable] ''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'':
*[http://www.microsoft.com/en-us/download/details.aspx?id=40784 Visual C++ Redistributable Packages for Visual Studio 2013]
*[http://www.microsoft.com/en-us/download/details.aspx?id=30679 Visual C++ Redistributable for Visual Studio 2012]
*[http://www.microsoft.com/en-us/download/details.aspx?id=26999 Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package]


===Installing Microsoft Visual Studio===
===Installing Microsoft Visual Studio===
Line 107: Line 111:
[[File:directxsdk6.jpg | frameless]]
[[File:directxsdk6.jpg | frameless]]
[[File:directxsdk7.jpg | frameless]]
[[File:directxsdk7.jpg | frameless]]
====OpenGL Extension Wrangler (GLEW)====
#Download the OpenGL Extension Wrangler binaries from the website listed above. Extract the files into a directory of your choice. In this case, I have extracted them to: C:\Development\Add-On Libraries\GLEW\ 
#Secondarily, if you intend to build and use the debug version of the gsDX plugin, you will need to manually copy glew32.dll to the \bin subdirectory of your pcsx2 installation. For example, if you followed the defaults on a 32-bit system, you'd put it here: C:\Program Files\pcsx2\bin
====Windows 2003 R2 Platform SDK (Visual C++ 2008 Express ONLY)====
#If you are compiling using Visual C++ 2008 Express, in order to compile several of the plugins, you will need files that are not included with your version of Visual Studio by default. Download the Windows 2003 R2 Platform SDK Web Installer from the link above, #and run the installer. Click Next at the Welcome Screen shown below.
#Accept the EULA and click Next.
#Choose the Typical install when prompted and click Next.
#I recommend leaving the installation at the default directory to ensure there are no problems in the future.
#The installer will then ask you to confirm that you are installing....
#Then it will install.
#After the installation has completed, you will see the following screen. Click Finish and the installer will close.
#Continue to the next prerequisite.
[[File:win2003r2-1.jpg | frameless]]
[[File:win2003r2-2.jpg | frameless]]
[[File:win2003r2-3.jpg | frameless]]
[[File:win2003r2-4.jpg | frameless]]
[[File:win2003r2-5.jpg | frameless]]
[[File:win2003r2-6.jpg | frameless]]
[[File:win2003r2-7.jpg | frameless]]
====nVidia's CG Toolkit====
#Download the nVidia CG Toolkit from the link above and run the installer. Click next at the Welcome Screen as shown.
#Accept the EULA and click next.
#Accept the default installation destination and click next.
#The default component selection will suffice for PCSX2 compilation, however, you can add anything that is not selected if you want it and the source code examples and documentation are not required (and will shave 30-40MB off of the install).
#Review the confirmation screen and click Next to continue.
#The installer will begin the install process.
#You will be presented with the following screen when the installer has finished:
#Continue on to the next section.
[[File:nvidiacgtoolkit1.jpg | frameless]][[File:nvidiacgtoolkit2.jpg | frameless]][[File:nvidiacgtoolkit3.jpg | frameless]][[File:nvidiacgtoolkit4.jpg | frameless]][[File:nvidiacgtoolkit5.jpg | frameless]][[File:nvidiacgtoolkit6.jpg | frameless]][[File:nvidiacgtoolkit7.jpg | frameless]]


==Configuring the Build Environment==
==Configuring the Build Environment==
ninja
34

edits