by sweetlilmre 04 Oct 2005
Lines that start with below are comments, lines in boxes are shell commands that should
be entered exactly as shown. Some commands will take a long time to complete, be patient.
by lumo 16 Oct 2005
i used this tutorial to put a little shellscript (lpchain) together to do this stuff automatically
you can grab the script (including the required mikmod Makefile) http://lumo.at.tt
note: unpack the lpchain.zip and run the script: “./lpchain.sh” by using the following parameters
You must have cygwin setup and running, I would suggest this guide: programming_faq
Please pay special attention to the export of path information in the faq.
I would also suggest installing the entire devel tree of cygwin (as per the faq)
NOTE: when installing cygwin, make sure you install ‘opengl’ under the graphics category if you wish to compile the Windows player. Also make sure you have libpng, zlib and any other dependencies installed.
I like to ‘make clean’ before making the libs etc. Sometimes you can get halfway through a build, encounter an
error and the build will then continue to fail until you do this. If you are not as paranoid as me, forget the ‘make clean’.
If you encounter errors, try a ‘make clean’ before continuing.
open a cygwin shell, you should be in your home directory
mkdir source cd source
lets get all of the latest source for starters:
svn checkout svn://svn.ps2dev.org/psp/trunk/psptoolchain svn checkout svn://svn.ps2dev.org/psp/trunk/lua svn checkout svn://svn.ps2dev.org/psp/trunk/libpng svn checkout svn://svn.ps2dev.org/psp/trunk/jpeg svn checkout svn://svn.ps2dev.org/psp/trunk/mikmodlib svn checkout svn://svn.ps2dev.org/psp/trunk/zlib svn checkout svn://svn.ps2dev.org/psp/trunk/freetype svn checkout svn://svn.ps2dev.org/pspware/trunk/LuaPlayer
sort out the toolchain and the LATEST PSPSDK
cd psptoolchain
here is the big decision, do you need to update the PSPSDK? Then do this:
./toolchain.sh -p
if you need to install it from scratch then do this:
WARNING, this will take a LOOOOOOOOOOOOOOOONG time!
./toolchain.sh cd ..
build zlib for libpng
cd zlib make make install cd ..
build libpng
cd libpng make make install cd ..
build jpeg
cd jpeg make make install cd ..
build freetype
sh autogen.sh LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \ ./configure --host psp --prefix=$(psp-config --psp-prefix) make make install
build mikmodlib
cd mikmodlib make install cd ..
build lua, NOTE: you must specifically use Makefile.psp here, Makefile is the normal Linux makefile
which will be used later
cd lua make -f Makefile.psp make -f Makefile.psp install cd ..
Finally build the player
cd LuaPlayer make make install cd ..
Once you have done all of the above:
Compile mikmod for cygwin:
cd mikmodlib make -f Makefile.windows clean install cd ..
Build the Linux version of lua
You MUST ‘make clean’ here to remove the files from the PSP build
cd lua make clean make linux make install cd ..
Build the Windows LuaPlayer
cd LuaPlayer make -f Makefile.windows
if you get errors at this point, it is probably due to missing exports in the emulator.c file.
this means that the emulator is not yet up to date. You have 2 choices:
1. implement the functions yourself
2. wait for me to do so :)