Open main menu

Difference between revisions of "Compiling ScummVM/PlayStation 2"

Update instructions for Git. Fix some upper/lower case
(Filled out the wiki page with real contents)
(Update instructions for Git. Fix some upper/lower case)
Line 1: Line 1:
= a. Decide were your tools and your sdk are going to be ;-) =
= a. Decide were your tools and your SDK are going to be ;-) =


   For example:
   For example:
Line 5: Line 5:
   /works/devel/ps2/sdk
   /works/devel/ps2/sdk


= b. First we need the tools, let's get them started with svn... =
= b. First we need the tools, let's get them started with git... =


<syntaxhighlight type="bash">svn co svn://svn.ps2dev.org/ps2/trunk/ps2toolchain</syntaxhighlight>
<syntaxhighlight type="bash">git clone https://github.com/ps2dev/ps2toolchain.git</syntaxhighlight>


= c. ...and build them using toolchain.sh! =
= c. ...and build them using toolchain.sh! =
Line 28: Line 28:
Note:
Note:
the script will download the needed sources from the net.
the script will download the needed sources from the net.
As of right now, the ps2 port won't compile with the most
As of right now, the PS2 port won't compile with the most
recent versions of the toolchain so you will have to modify
recent versions of the toolchain so you will have to modify
the scripts "005-ps2sdk.sh" and "006-ps2client.sh" to svn check
the scripts "005-ps2sdk.sh" and "006-ps2client.sh" to svn check
Line 46: Line 46:
- you can call it "sdk-ports" if you want to be consistent with svn naming structures
- you can call it "sdk-ports" if you want to be consistent with svn naming structures


     // zlib
     // zlib & libmad
     svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk-ports/zlib
     git clone https://github.com/ps2dev/ps2sdk-ports.git
     cd zlib
     cd zlib
     make
     make
 
     cd ../libmad
     // libmad
    svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk-ports/libmad
    cd libmad
     mkdir ee/lib
     mkdir ee/lib
     make
     make
Line 62: Line 59:




= e. get scummvm =
= e. get ScummVM =


<syntaxhighlight type="bash">svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk trunk</syntaxhighlight>
<syntaxhighlight type="bash">git clone https://github.com/scummvm/scummvm.git</syntaxhighlight>


-or-
-or-


<syntaxhighlight type="bash">svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/branch-1-0-0</syntaxhighlight>
<syntaxhighlight type="bash"git clone -b branch-1-7-0 https://github.com/scummvm/scummvm.git</syntaxhighlight>
    
    
<syntaxhighlight type="bash">cd trunk/backends/platform/ps2</syntaxhighlight>
<syntaxhighlight type="bash">cd trunk/backends/platform/ps2</syntaxhighlight>
Line 76: Line 73:
<syntaxhighlight type="bash">make -f Makefile.ps2</syntaxhighlight>
<syntaxhighlight type="bash">make -f Makefile.ps2</syntaxhighlight>


Your fresh-baked scummvm will be waiting for you in elf/scummvm.elf ;-)
Your fresh-baked ScummVM will be waiting for you in elf/scummvm.elf ;-)
If you don't need the symbols, just strip them ee-strip --strip-all scummvm.elf
If you don't need the symbols, just strip them ee-strip --strip-all scummvm.elf




'''enjoy!'''
'''Enjoy!'''
1,489

edits