Mac OS X ToolChain (Intel variation)

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

Moderators: cheriff, TyRaNiD

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

Mac OS X ToolChain (Intel variation)

Post by Wally »

hi everyone,

I have compiled the PSP toolchain to be used, i wish to share it with you other mac users who are having trouble with it

1) follow steps 1 - 4 on http://forums.ps2dev.org/viewtopic.php?t=5391

2) Download the DMG from
www.dosgames.com/~wally4000/PSPDEVtoolchain.dmg
and mount to desktop

3) Click the desktop and press Apple - shift - G and type /usr/local/pspdev

4) Extract contents of dmg to /usr/local/pspdev

THIS WILL NOT WORK ON LINUX OR WINDOWS as its specifically for Intel Macs. (iMac, Macbook, Macbook Pro, MacPro)

Enjoy!
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

Thanks dude! Is this quicker then the other way? And is this using th newest toolchain?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Latest toolchain (as of 2 days ago)

Yes its much quicker
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

I installed it :), thanks... I did have a problem with step four (of the other tut), so I don't know if it will compile right... How do you compile on mac anyways? like on windows? point to the project folder then put make?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

compiling is done the same way,this just takes a load of time off.


Follow the other tutorial to compile the entire source (takes about 1 hour on an intel mac with 2.0ghz and 1gb ram)
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

no I mean compile my code...?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

nah you dont have to, just type make or ./configure (if you declared the variables properly) it should work
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

Ah, ok. Thanks!
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

How would I install the SDL and pspgl libraries? I tried the svn commands you would use in cygwin, but that doesn't work...
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Install SVN (Download the source from subversion.tigus.org (i think))

type ./configure
after process type make
then sudo make install and your password

then try
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

sry, I'm still confused... How do I install svn? I know nothing about svn... I down;oad it i run the .pkg then it says its installed then i tey typine //configure in terminal and it gets an error...
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

oh dont worry about that


Its installed

Just type svn co svn://svn.pspdev.org/psp/trunk/SDL and it should start downloading
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

still doesn't work.... this is my error
-bash: svn: command not found
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

http://metissian.com/projects/macosx/subversion/ <-- i hope you got it from here
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

I believe I had the sam app, just I didn't dl it from there... Let me try downloading that and installing t again.
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

Hmmm, still not working... I am suppose type this svn co svn://svn.pspdev.org/psp/trunk/SDL into terminal, right?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

yep..

I think you might need to move the svn program from usr/local/bin to /usr/bin

typing

cd /usr/local/bin
sudo cp svn /usr/bin

should do it
bronxbomber92
Posts: 36
Joined: Fri Jul 21, 2006 11:00 am

Post by bronxbomber92 »

it worked :d Thanks...

Do you know if you need to do these steps when installing it after you dl it?c
- go to newly created pspgl directory, by typing "cd pspgl" (allways without quote)
- then type "make"
- and finaly type "make install"
?
And when I try them anyways I get this error
make: psp-config: Command not found
make: psp-config: Command not found
mkdir .deps
psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I /include -I /include -funit-at-a-time -MD -MF .deps/eglBindTexImage.d -c eglBindTexImage.c
make: psp-gcc: Command not found
make: *** [eglBindTexImage.o] Error 127
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

ah you have to set up your system variables as mentioned on the other docuument

To save you frustration


3. Set Environment Variables
Open a Terminal, and type the following commands
Code:

cd ~/
vim .bash_profile


Once inside vim, type the following lines, then press escape, colon (: ) and then type wq (write and quit) followed by enter. It is very important to not miss any quotation marks below.

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:

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"

Wally
Post Reply