Difference between revisions of "Compiling ScummVM/PlayStation Portable"

From ScummVM :: Wiki
Jump to navigation Jump to search
(adding link to original page)
Line 1: Line 1:
To build ScummVM for PSP you need:
There are 2 ways to get the necessary components to build for the PSP -- the easy way and the hard way.
 
The hard way is obtaining and building everything:


* PSP Toolchain (svn co svn://svn.pspdev.org/psp/trunk/psptoolchain)
* PSP Toolchain (svn co svn://svn.pspdev.org/psp/trunk/psptoolchain)
Line 5: Line 7:
* SDL (svn co svn://svn.pspdev.org/psp/trunk/SDL)
* SDL (svn co svn://svn.pspdev.org/psp/trunk/SDL)
* zlib (svn co svn://svn.pspdev.org/psp/trunk/zlib)
* zlib (svn co svn://svn.pspdev.org/psp/trunk/zlib)
* libmad* (svn co svn://svn.pspdev.org/psp/trunk/libmad)
* libmad (svn co svn://svn.pspdev.org/psp/trunk/libmad)
* libTremor* (svn co svn://svn.pspdev.org/psp/trunk/libTremor)
* libTremor* (svn co svn://svn.pspdev.org/psp/trunk/libTremor)
* libmpeg2* ([http://libmpeg2.sf.net]) Note: As this is not in pspdev svn, you'll need to build it manually. Adding a psp target/host to config.sub and using a configure line similar to the SDL port worked.
* libmpeg2* ([http://libmpeg2.sf.net]) Note: As this is not in pspdev svn, you'll need to build it manually. Adding a psp target/host to config.sub and using a configure line similar to the SDL port worked.
* libpng (needed for the image browser and visual keyboard)


<nowiki>*</nowiki>Optional
<nowiki>*</nowiki>Optional


When you've installed these libraries (read their README.PSP for instructions),
The easy way is to install MinPSPW, which is available for Windows and Linux. Everything is taken care of for you this way. This way is ''highly'' recommended.
type "make" in the backends/psp directory to build an 1.00 firmware EBOOT.PBP,
or "make kxploit" to build the 1.50/kxploit EBOOT.PBPs
 
You can control most of the build process (engines and libraries used) from
the Makefile.


To build, from msys, go to the scummvm directory. Create a subdirectory called something like 'builds/psp' and change to it (cd builds/psp).
Now call configure by typing '../../configure --host=psp --enable-plugins --default-dynamic'
This will build for the PSP with plugins enabled, which is recommended or you may not have enough memory. The PSP-2000 and above can handle not using plugins. In that case you'll only type '../../configure --host=psp'.


Now type 'make' and wait for compilation and linking to complete. You'll end up with an 'EBOOT.PBP' file, as well as plugins (if you asked for them) in the /plugins directory.


Based on [http://svn.sourceforge.net/viewvc/*checkout*/scummvm/scummvm/trunk/backends/platform/psp/README.PSP?revision=23358 README.PSP].
Don't forget the kbd.zip file from /backends/platform/psp if you want the visual keyboard to work.

Revision as of 13:47, 10 January 2011

There are 2 ways to get the necessary components to build for the PSP -- the easy way and the hard way.

The hard way is obtaining and building everything:

*Optional

The easy way is to install MinPSPW, which is available for Windows and Linux. Everything is taken care of for you this way. This way is highly recommended.

To build, from msys, go to the scummvm directory. Create a subdirectory called something like 'builds/psp' and change to it (cd builds/psp). Now call configure by typing '../../configure --host=psp --enable-plugins --default-dynamic' This will build for the PSP with plugins enabled, which is recommended or you may not have enough memory. The PSP-2000 and above can handle not using plugins. In that case you'll only type '../../configure --host=psp'.

Now type 'make' and wait for compilation and linking to complete. You'll end up with an 'EBOOT.PBP' file, as well as plugins (if you asked for them) in the /plugins directory.

Don't forget the kbd.zip file from /backends/platform/psp if you want the visual keyboard to work.