forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Guide: Mac OS X SDK (without Fink)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
xero1



Joined: 02 Dec 2006
Posts: 3

PostPosted: Sat Dec 02, 2006 3:21 am    Post subject: Guide: Mac OS X SDK (without Fink) Reply with quote

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:
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:
sudo port install autogen autoconf automake nano libtool libsdl patchutils subversion wget gmake


Code:

cd ~/


Code:
nano .bash_profile


Use the edit menu of the Terminal and past:

Code:
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:
sudo mkdir -p /usr/local/pspdev


Code:
sudo chmod a+rwx /usr/local/pspdev


Code:

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


Code:
cd psptoolchain


Code:
./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.
Back to top
View user's profile Send private message
TUniqueW



Joined: 09 Dec 2006
Posts: 12

PostPosted: Thu Dec 14, 2006 7:27 am    Post subject: Reply with quote

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

sudo port install libtool-devel

after installing libtool-devel install Libtool it self :
Code:

sudo port install libtool

then after ward to use them for PSP development:
Code:

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!
Back to top
View user's profile Send private message MSN Messenger
Nobosi



Joined: 07 Aug 2007
Posts: 1

PostPosted: Tue Aug 07, 2007 7:31 am    Post subject: Reply with quote

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


Quote:
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!
Back to top
View user's profile Send private message
spike411



Joined: 31 Aug 2007
Posts: 1

PostPosted: Fri Aug 31, 2007 7:41 pm    Post subject: Make error during psplink compilation Reply with quote

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:

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
_________________
Jabber ID: spike411@jabber.cz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group