We're going to start by supposing you already have cygwin and the pspsdk installed (of course if you use linux you don't need cygwin).
If not you'll need to install them using the following tutorial:
http://www.psp-programming.com/tutorials/c/lesson01.htmThe first step is to open cygwin and type in the following line:
export PATH=$PATH:/usr/local/pspdev/binYou can also do this by editing the file .bashrc that is in the folder home/user where you have cygwin installed.
When you type tat you're telling the enviroment where the pspsdk directory is, which is necessary to compile the SDL library and be able to use it. Next, we'll go into the toolchain folder and type the following lines one at a time and then just wait:
cd /trunk/SDL
./autogen.sh
LDFLAGS=”-L$(psp-config –-pspsdk-path)/lib -lc -lpspuser” ./configure --host psp --prefix=$(psp-config –-psp-prefix)
make
make install
If you've done everything right you should have SDL installed, now we're going to do the rest of the libraries, we are going to continue by installing SDL_image.
SDL_image needs other libraries to work, zlib, libpng and jpeg, so we'll install those first, we're going to type the following:
cd ..
cd /trunk/zlib
make
make installnow lets do libpng
cd ..
cd /trunk/libpng
make
make install
and last we need jpeg
cd ..
cd/trunk/jpeg
make
make installNow that we have the libraries to install SDL image lets get to it:
cd ..
cd /trunk/SDL_image
./autogen.sh
LDFLAGS=”-L$(psp-config --pspsdk-path)/lib -lc -lpspuser” ./configure --host psp --with-sdl-prefix=$(psp-config –-psp-prefix) –prefix=$(psp-config –-psp-prefix)
make
make installNow that SDL_image and it's dependant libraries are installed, we're going to do SDL_mixer.
This library also needs others which are, SDL, libogg, libtremor y libvorbis, we'll satrt with libogg and lubtremor
cd ..
cd /trunk/libogg
LDFLAGS=”-L$(psp-config --pspsdk-path)/lib -lc -lpspuser” ./autogen.sh --host psp --prefix=$(psp-config --psp-prefix)
make
make install
now lets do libtremor
cd ..
cd /trunk/libTremor
LDFLAGS=”-L$(psp-config --pspsdk-path)/lib -lc -lpspuser” ./autogen.sh --host psp --prefix=$(psp-config --psp-prefix)
make
make installnow SDL_mixer
cd..
cd /trunk/SDL_mixer
./autogen.sh
LDFLAGS=”-L$(psp-config --pspsdk-path)/lib -lc -lpspuser” ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) –disable-music-mp3 --prefix=$(psp-config –-psp-prefix)
make
make installlast we're going to install SDL_gfx which we'll use to put in text, make rotations and much more
cd ..
cd /trunk/SDL_gfx
AR=psp-ar
LDFLAGS=”-L$(psp-config --pspsdk-path)/lib -lc -lpspuser” ./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) –prefix=$(psp-config --psp-prefix) --disable-mmx --disable-shared
make
make installNOw we have all the SDL libraries instaled, we're just missing the last one, SDL_ttf, this library is for putting text on the screen using ttf fonts, but since I don't use it I leave it up to you to install it.
You just need to read the README.PSP and you'll have instructions on compiling the library, lets say the library depends on freetype, that means you need to install freetype first and then SDL_ttf.
Hope you enjoyed the tutorial
Translated by me

yay