PCSX2 Documentation/Compiling on Windows: Difference between revisions

Line 324: Line 324:
===Packaging PCSX2 with all Plugins===
===Packaging PCSX2 with all Plugins===
In order to compile PCSX2 and include the Plugins, you must specify the INC_PLUGINS variable to makensis.exe. To do this, run the following in a command prompt (assuming default installation directories):
In order to compile PCSX2 and include the Plugins, you must specify the INC_PLUGINS variable to makensis.exe. To do this, run the following in a command prompt (assuming default installation directories):
<source lang="powershell">C:\Program Files\NSIS\makensis.exe" "C:\Development\Project Source\PCSX2\NSIS\pcsx2_installer_script.nsi" /DINC_PLUGINS</source>
 
<source lang="powershell">"C:\Program Files\NSIS\makensis.exe" "C:\Development\Project Source\PCSX2\NSIS\pcsx2_installer_script.nsi" /DINC_PLUGINS</source>
 
This will compile PCSX2 and include all of the plugins in the installer file.
This will compile PCSX2 and include all of the plugins in the installer file.
Packaging the PCSX2 wxGUI Branch Due to a few changes in the versioning (and some not yet up-to-date code), you will need to make some changes to the pcsx2_installer_script.nsi in order to get a working installer for the wxGUI trunk. Update to the latest SVN revision and check the .NSI file at (or around) line 103. You may see the following:
Packaging the PCSX2 wxGUI Branch Due to a few changes in the versioning (and some not yet up-to-date code), you will need to make some changes to the pcsx2_installer_script.nsi in order to get a working installer for the wxGUI trunk. Update to the latest SVN revision and check the .NSI file at (or around) line 103. You may see the following:
    SetOutPath $INSTDIR
<source lang="powershell">
    File /oname=pcsx2-r${SVNREV}.exe
SetOutPath $INSTDIR
    ..\bin\pcsx2.exe
File /oname=pcsx2-r${SVNREV}.exe
    File ..\bin\w32pthreads.dll
..\bin\pcsx2.exe
    File ..\bin\gnu_gettext.dll
File ..\bin\w32pthreads.dll
File ..\bin\gnu_gettext.dll
</source>
 
Note that it is referencing w32pthreads.dll even though the wxGUI branch of PCSX2 uses an updated w32pthreads.v2.dll. Change the code to read
Note that it is referencing w32pthreads.dll even though the wxGUI branch of PCSX2 uses an updated w32pthreads.v2.dll. Change the code to read
    SetOutPath $INSTDIR
<source lang="powershell">
    File /oname=pcsx2-r${SVNREV}.exe
SetOutPath $INSTDIR
    ..\bin\pcsx2.exe
File /oname=pcsx2-r${SVNREV}.exe
    File ..\bin\w32pthreads.v2.dll
..\bin\pcsx2.exe
    File ..\bin\gnu_gettext.dll
File ..\bin\w32pthreads.v2.dll
File ..\bin\gnu_gettext.dll
</source>
 
and close the file. Note that updating the SVN after you make this change may alert you that your copy and the copy on the server do not match. This means that the NSI file has changed in the repository and you should re-download it. If you update and get an error from NSIS about being unable to find w32pthreads.dll, you'll know what to do to fix it. Once that is done, follow the same process as is outlined above for the PCSX2 Trunk SVN.
and close the file. Note that updating the SVN after you make this change may alert you that your copy and the copy on the server do not match. This means that the NSI file has changed in the repository and you should re-download it. If you update and get an error from NSIS about being unable to find w32pthreads.dll, you'll know what to do to fix it. Once that is done, follow the same process as is outlined above for the PCSX2 Trunk SVN.


{{PCSX2 Documentation Navbox}}
{{PCSX2 Documentation Navbox}}
ninja
782

edits