HOWTO: Compile the SDK on OSX - Consolidated Info

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

StrmnNrmn has posted a guide on his blog

here it is
To install the PSPSDK I largely followed this guide (http://forums.ps2dev.org/viewtopic.php?t=5391) on the ps2dev.org forums. I already had XCode and fink installed. Fink complained when I tried to install all the listed packages, and I had to remove one of them from the command line (I think it was autogen, but I can't really remember now.)

I've been using the most recent psptoolchain script, which was updated a few weeks ago, and I had to make a couple of modifications. In depends/check-ncurses.sh I had to change the check for ncurses to look for the OSX .dyliib file:



## Check for a ncurses library.ls /usr/lib/libncurses.a 1> /dev/null || ls /usr/lib/libncurses.dll.a || { echo "ERROR: Install ncurses before continuing."; exit 1; }

became:


## Check for a ncurses library.ls /usr/lib/libncurses.a 1> /dev/null || ls /usr/lib/libncurses.dll.a || ls /usr/lib/libncurses.dylib || { echo "ERROR: Install ncurses before continuing."; exit 1; }

Secondly I had to make this change to scripts/001-binutils-2.16.1.sh. As urchin mentions on the ps2dev.org forum, ".m" is the extension for Objective C files in OSX. The '-r' tells make to ignore the built-in implicit rules, and everything works fine:

So:


## Compile and install.make clean && make -j 2 && make install && make clean || { exit 1; }

became:


## Compile and install.make clean && make -r -j 2 && make install && make clean || { exit 1; }

(note the '-r' flag on the second invocation of make.)

I left the psptoolchain script doing its stuff for a couple of hours, and when I came back to it everything seemed to have completed and installed correctly.
Hope this helps
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

does it also work on leopard??
Image
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

should do. Although there's other libraries that you need.
Post Reply