PCSX2 Documentation/Compiling on Windows: Difference between revisions

Jump to navigation Jump to search
Line 216: Line 216:
You've now completed all of the "leg work" required in order to compile PCSX2 on your machine. Congratulations!
You've now completed all of the "leg work" required in order to compile PCSX2 on your machine. Congratulations!


===Compiling Trunk SVN Builds of PCSX2===
===Compiling Git Builds of PCSX2===
Open the PCSX2 SVN directory you have downloaded the source code in to (in this case, C:\Development\Project Source\PCSX2) and double-click on the pcsx2_suite_2008.sln Solution file. This will open Visual Studio 2008 (if it is not already open) and you will see a screen similar to this.
Open the PCSX2 directory you have downloaded the source code into (in this case, C:\Development\Project Source\PCSX2) and double-click on the solution matching your build environment major release (pcsx2_suite_2010.sln, pcsx2_suite_2012.sln or pcsx2_suite_2013.sln). This will open the appropriate build environment (if it is not already open) and you will see a screen similar to this.


[[File:Visualstudio2008config1.jpg | frameless]]
[[File:Visualstudio2008config1.jpg | frameless]]
 
On more recent versions of Visual Studio the solution explorer panel is on the right side instead of left.
====Build Target Selection (Developer, Debug, Release, SSE2, SSSE3, or SSE4 Builds)====
====Build Target Selection====
At the top of your screen, you will see a small drop down list which contains what is known as your "Build Target", as shown in the screenshot.
This menu corresponds to the build of PCSX2 that you will be compiling. SSE2, SSSE3, and SSE4 refer to CPU instruction sets and only apply to the gsDX Plugin (though they compile the full solution as well). The Release Build Target does not specify an instruction set target for the gsDX compile and will not compile gsDX. It is recommended that you choose all three (SSE2, SSSE3, and SSE4) as a build target (Release is unnecessary) if preparing a release build to ensure that all users have available versions of the plugin.
Once you have selected the Build Target, it is time to build the solution. You can either select the Build Menu from the top menu, and choose Build Solution, or you can hit CTRL-SHIFT-B.
This is the moment of truth! If you've followed the instructions properly and configured all of the search directories for Visual Studio properly, this process should finish with 0 errors. Warnings are usually nothing to worry about, so, as long as the solution compiles with 0 errors and you have the output files, you should be good to go. Congratulations!
1 2
 
===Compiling Legacy GUI SVN Builds of PCSX2===
Open the PCSX2-legacy SVN directory you have downloaded the source code in to (in this case, C:\Development\Project Source\PCSX2-legacy) and double-click on the pcsx2_suite_2008.sln Solution file. This will open Visual Studio 2008 (if it is not already open) and you will see a screen similar to the screenshot.
1
====Build Target Selection (Developer, Debug, or Release Builds)====
At the top of your screen, you will see a small drop down list which contains what is known as your "Build Target", as shown in the screenshot.
At the top of your screen, you will see a small drop down list which contains what is known as your "Build Target", as shown in the screenshot.
This menu corresponds to the build of PCSX2 that you will be compiling. SSE2, SSSE3, and SSE4 refer to CPU instruction sets and only apply to the gsDX Plugin (though they compile the full solution as well). It is recommended that you choose all three as a build target if preparing a release build to ensure that all users have available versions of the plugin.
This menu corresponds to the build of PCSX2 that you will be compiling. SSE2, SSSE3, SSE4, AVX, AVX2 refer to CPU instruction sets and only apply to the GSdx Plugin (though they compile the full solution as well). The Release Build Target does not specify an instruction set target for the GSdx compile and will not compile GSdx. It is recommended that you choose all five (SSE2, SSSE3, SSE4, AVX and AVX2) as a build target (Release is unnecessary) if preparing a release build to ensure that all users have available versions of the plugin.
Build the branch release just like you would the main Trunk release.
Once you have selected the Build Target, it is time to build the solution. You can either select the Build Menu from the top menu, and choose Build Solution, or use the appropriate shortcut key.
1
This is the moment of truth! If you've followed the instructions properly, this process should finish with 0 errors. Warnings are usually nothing to worry about, so, as long as the solution compiles with 0 errors and you have the output files, you should be good to go. Congratulations!


==Effective Build Troubleshooting Steps==
==Effective Build Troubleshooting Steps==
ninja
34

edits

Navigation menu