Guide: Mac OS X SDK (without Fink)

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

Moderators: cheriff, TyRaNiD

Post Reply
xero1
Posts: 3
Joined: Sat Dec 02, 2006 1:49 am

Guide: Mac OS X SDK (without Fink)

Post by xero1 »

For anyone getting make errors with Fink. I used DarwinPorts because it builds form source and is more up to date.

There are 3 things needed:

1st: DarwinPorts: (make sure you do a selfupdate if you have it installed) http://darwinports.opendarwin.org/

2nd: Xcode: (do not use the version from your install disk) http://developer.apple.com/tools/download/

3rd: X11SDK: Can be installed from Xcode via a custom install

Not "needed" but should be installed for use with darwinports:

X11: From your OS X install DVD. Then do an Apple software update to get the newest version.


Ports needed:

Code: Select all

sudo port install autogen
sudo port install autoconf
sudo port install automake
sudo port install nano
sudo port install libtool
sudo port install libsdl
sudo port install patchutils
sudo port install subversion
sudo port install wget
sudo port install gmake
Or:

Code: Select all

sudo port install autogen autoconf automake nano libtool libsdl patchutils subversion wget gmake

Code: Select all

cd ~/

Code: Select all

nano .bash_profile
Use the edit menu of the Terminal and past:

Code: Select all

export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="/opt/local/bin:$PATH:$PSPPATH"
'ctrl+x' to exit then 'y' next 'return' to save.

Code: Select all

sudo mkdir -p /usr/local/pspdev

Code: Select all

sudo chmod a+rwx /usr/local/pspdev

Code: Select all

svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain

Code: Select all

cd psptoolchain

Code: Select all

./toolchain.sh
This the long way of doing it, but I feel the best.

Thank you very much to the other Mac guides here for getting me started.
User avatar
TUniqueW
Posts: 12
Joined: Sat Dec 09, 2006 12:51 pm

Post by TUniqueW »

Thanks,
This works great without any errors .
to get Libtool for installing other things on Mac do this:

Code: Select all

sudo port install libtool-devel
after installing libtool-devel install Libtool it self :

Code: Select all

sudo port install libtool
then after ward to use them for PSP development:

Code: Select all

ln -s /opt/local/bin/glibtoolize /opt/local/bin/libtoolize
ln -s /opt/local/bin/glibtool /opt/local/bin/libtool
as in Mac libtool is known as glibtool ...... you have to do that ^^
thanks to xero1 again.
Developer: C/C++ knows nothing about assembly!
Nobosi
Posts: 1
Joined: Tue Aug 07, 2007 7:28 am

Post by Nobosi »

Great tutorial but unfortunately I'm still idiotically messing up even these simple instructions...

I got everything installed and am stuck at the "sudo port install" commands. I keep getting an error when trying to use the command

alexander-computer:~ Alexander$ sudo port install gmake
---> Fetching expat
---> Attempting to fetch expat-2.0.1.tar.gz from http://downloads.sourceforge.net/expat
---> Verifying checksum(s) for expat
---> Extracting expat
Error: Target org.macports.extract returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work" && gzip -dc /opt/local/var/macports/distfiles/expat/expat-2.0.1.tar.gz | /usr/bin/gnutar --no-same-owner -xf - " returned error 2
Command output: /usr/bin/gnutar: unrecognized option `--no-same-owner'
Try `/usr/bin/gnutar --help' for more information.

gzip: stdout: Broken pipe

Error: The following dependencies failed to build: gettext expat libiconv
Error: Status 1 encountered during processing.
I'll keep slaving away trying to get this figured out but any help would be greatly appreciated!
spike411
Posts: 1
Joined: Fri Aug 31, 2007 6:52 pm

Make error during psplink compilation

Post by spike411 »

Hello, I've followed this guide step by step, but I've encountered two problems.

I've fixed the first one after a bit of googling (problem with *.m extension during binutils compilation (Apple-patched GNU Make treats some extensions differently), just pass -r to make in 001-binutils-2.16.1.sh)

The second one is this:

Code: Select all

rm -f pspsh *.o
make -C usbhostfs_pc clean
rm -f usbhostfs_pc *.o
if ( test -f /usr/include/SDL/SDL.h ); then { make -C tools/remotejoy/pcsdl clean; } else { make -C tools/remotejoy/pc clean; } fi
rm -f remotejoy *.o
make -C pspsh all
make[1]: *** No rule to make target `pspsh.o', needed by `pspsh'.  Stop.
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.

Any hints? Thanks
Post Reply