After spending many hours, and many attempts of installing and using the psptoolchain on my old ibook g3, I am writing a complete guide to consolidate all the required information that is necessary to build the sdk from the subversion repository. There are a number of threads which contain the same information in here, but in less detailed, and no specific order, which makes them very hard to follow through on. The following steps were completed on a fresh install of Mac OS X Tiger, and are known to work.
1.Install XCode & GNU Compiler Collection
In order to download xcode, and the gnu compiler collection for macs, you must register at the Apple Developer Connection. Point your browser of choice to http://connect.apple.com and register. Once complete, login, go into the downloads section, followed by Developer Tools section, and download the Xcode Tools 2.2.1 (Disk Image) which weighs in at 820MB. Once Downloaded, Install everything in the XcodeTools.mpkg installer. If you desire, you can remove the java components, sdk’s, and documentation to save space.
2. Install Fink & Tools
Point your browser to http://fink.sourceforge.net/download/index.php and download the Fink binaries for OSX (Direct Link: http://prdownloads.sourceforge.net/fink ... g?download ). Install fink from the disk image downloaded. During the install process, it will try to set profile variables, and fail, this is ok, we will set them ourselves in the next step. Next, open up a terminal ( Applications/Utilities/Terminal ) and enter the following command:
Code: Select all
sudo fink -y install autogen autoconf2.5 automake1.8 libtool make svn-client wget sdl libtool14
3. Set Environment Variables
Open a Terminal, and type the following commands
Code: Select all
cd ~/
vim .bash_profile
NOTE: You can do this in another editor, but make sure to save the filename correctly. For example, using TextEdit will save the file as .bash_profile.rtf instead of .bash_profile
Code: Select all
export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="/sw/bin:$PATH:$PSPPATH"
4. Create a PSPDEV directory and handle permissions
Open a Terminal and type the following commands.
Code: Select all
sudo mkdir -p /usr/local/pspdev
sudo chmod a+rwx /usr/local/pspdev
Open a terminal and type:
Code: Select all
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain
cd psptoolchain
sh ./toolchain.sh
Once the toolchain script is complete, The PSP SDK will be installed into /usr/local/pspdev .