Playstation 2 development – part 2
This is the second issue of a series of posts for PS2 development on my blog. Be sure to read the previous articles: part1.
Part 2: Getting SDL
To build SDL, at first you need to install another library named gsKit. This lib is a much lower level graphics library written specifically for the PS2. For an introduction to the hardware architecture of the PS2 please see the excelent article An introduction to PS2DEV by Lukasz Bruun.
Again gsKit is pretty easy to get running. Just download, build and install it:
svn co svn://svn.ps2dev.org/ps2/trunk/gsKit cd gsKit make sudo -E make install
Now you can get SDL and install it. However, when I tried, the current SDL version on ps2dev.org was not compatible with the current gsKit and didn’t compile. To make it compile, load sdl-compile.patch and apply it:
svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk-ports/sdl cd sdl patch -p0 < sdl-compile.patch make sudo -E make install
You should be familiar with building the libraries from ps2dev.org now, it’s always the same. If not so, the README will most likely explain the steps to get it running, even if very often they are pretty outdated. Now I leave it up to you to compile the additional SDL libs like SDL_ttf and so on.
In the next post I’ll explain how to write the first SDL program and run it on the PS2.
Tags: Development, PS2
This entry was posted on Wednesday, February 11th, 2009 at 11:34 and is filed under Playstation 2 development. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
