PCSX2 Documentation/Compiling on Windows: Difference between revisions

Line 191: Line 191:
===Configuring the SDK Library and Include Directories===  
===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.
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.
====Microsoft Visual C++ 2008 Express Edition====
Visual C++ 2008 Express Edition has several limitations not found in either Visual Studio 2008 Standard or Visual Studio 2010 Professional. Because of this, there are special instructions specific to this build environment.
To begin, make all of the same changes that you would make for Visual Studio 2008 Standard, except ignore anything relating to the x64 builds and build directories, as Visual C++ Express cannot compile x64 builds. Also note that you will get error about project folders not being supported in this version of the software every time you open the .sln file. This will not interfere with your compiling, just click OK to them all.
In addition to the changes above, you will need to tell Visual C++ 2008 where to find the Microsoft Windows 2003 R2 Platform SDK we downloaded.
[[File:visualstudio2008config3.jpg | frameless]]
#To access the configuration that we need to change, we will need to open the Tools menu and select Options from it.
#Expand "Projects and Solutions" from the left-hand side and then select "VC++ Directories". This will bring up the dialog that allows you to modify the search paths for your VC++ solutions.
#Under the Win32 Platform, you need to add the following to Include files:
<source lang="powershell">
$(ProgramFiles)\Microsoft Platform SDK for Windows Server 2003 R2\include\atl
$(ProgramFiles)\Microsoft Platform SDK for Windows Server 2003 R2\include\mfc
</source>
Next up is to get around a limitation regarding the compiling 32-bit ATL / MFC solutions in the Express editions of VS.
Open the file C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\include\atl\atlbase.h in a text editor and search for the following text:
<source lang="cpp">
#pragma comment(lib, "atlthunk.lib")
</source>
Comment this out, so that it reads:
<source lang="cpp">
#pragma comment(lib, "atlthunk.lib")
</source>
Save the file and exit your text editor.
Once you have done this, you should be able to continue on to the next steps.


====Microsoft Visual Studio (Beta 1) Professional====
====Microsoft Visual Studio (Beta 1) Professional====
ninja
34

edits