PCSX2 Documentation/Compiling on Windows: Difference between revisions

Line 71: Line 71:


===Installing SDKs===
===Installing SDKs===
The PCSX2 codebase makes use of several freely available SDKs that must be downloaded and installed in order to successfully compile PCSX2. If you are intending to compile the PCSX2 plugins as well, you will need additional SDKs. Each of the requisite SDKs is listed below.
The PCSX2 codebase makes use of several freely available SDKs that must be downloaded and installed in order to successfully compile PCSX2. If you are intending to compile the PCSX2 plugins as well, you will need additional SDKs. Each of the requisite SDKs is listed below.
DirectX SDK
====DirectX SDK====
Download the Web Installer from the link above. Run it, and click next at the Welcome Screen (shown below.)
#Download the Web Installer from the link above. Run it, and click next at the Welcome Screen (shown below.)
Accept the EULA as shown.
#Accept the EULA as shown.
You will be prompted to join the Windows Customer Experience Improvement Program. I chose not to, but the decision is yours to make. It won't impact anything you'll be doing with the software.
#You will be prompted to join the Windows Customer Experience Improvement Program. I chose not to, but the decision is yours to make. It won't impact anything you'll be doing with the software.
You will then be prompted for a destination folder, I recommend choosing the default to make life easier later on.
#You will then be prompted for a destination folder, I recommend choosing the default to make life easier later on.
You will be prompted with a list of components. The default selection will suffice for building PCSX2, so go ahead and click Next.
#You will be prompted with a list of components. The default selection will suffice for building PCSX2, so go ahead and click Next.
The DirectX SDK will then begin installing.
#The DirectX SDK will then begin installing.
You should then be presented with this screen.
#You should then be presented with this screen.
Click finish and move on to the next step.
#Click finish and move on to the next step.
1 2 3 4 5 6 7
1 2 3 4 5 6 7
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:
====OpenGL Extension Wrangler (GLEW)====
  C:\Development\Add-On Libraries\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:  
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:\Development\Add-On Libraries\GLEW\   
  C:\Program Files\pcsx2\bin
#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)
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.
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.
Line 117: Line 118:
You will be prompted to reboot your computer. Save your work and reboot, then continue to the next section.
You will be prompted to reboot your computer. Save your work and reboot, then continue to the next section.
1 2 3 4 5 6 7
1 2 3 4 5 6 7
==2. Configuring the Build Environment==
==2. Configuring the Build Environment==
Configuring the SDK Library and Include Directories Before PCSX2 will compile successfully, we need to ensure that all of the include, library, and header directories for the SDKs that we have installed are configured in our respective version of Visual Studio.
Configuring the SDK Library and Include Directories Before PCSX2 will compile successfully, we need to ensure that all of the include, library, and header directories for the SDKs that we have installed are configured in our respective version of Visual Studio.
ninja
782

edits