1 - make sure all dependencies are installed. They include:
Code: Select all
autoconf
autogen
automake
bison
build-essential
flex
imagemagick
libreadline-dev
libsdl-dev
libtools
libusb-dev
ncurses
patchutils
pkg-config
subversion
texinfo
wget
2 - from a newly opened shell, enter
Code: Select all
mkdir projects
cd projects
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
cd psptoolchain
sudo mkdir -p /usr/local/pspdev
sudo chmod a+rwx /usr/local/pspdev
sudo chown user:group /usr/local/pspdev
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"
./toolchain.sh
Making the pspdev specific to the user means the only sudos you'll ever use are the ones to make and chmod and chown the directory, as you see above. If you don't, and forget about sudo, you'll wind up installing libraries and such to the wrong place, or not at all (might be your problem).
Now let's install the libraries.
3 - Still in the same shell after running ./toolchain, do this
Code: Select all
cd ..
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries
cd psplibraries
./libraries.sh
Code: Select all
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"