Page 1 of 1
PS2 SDK on Linux !
Posted: Sun Jul 08, 2007 5:16 am
by Avanaboy
Hi ,
I'm trying to install the ps2 sdk on my Linux . I've downloaded the ps2toolchain on ps2dev.org , and I've run the toolchain-sudo.sh .... Now , what I must do ?
Please help my , i'm a newbies !
P.S: SORRY FOR MY ENGLISH BUT I'M ITALIAN !!!!
Posted: Sun Jul 08, 2007 12:36 pm
by radad
Your question is too vague be more specific. What do you want to do with it? Maybe try the examples.
Posted: Sun Jul 08, 2007 7:18 pm
by Avanaboy
YES ! I want to try some example ... But, How I compile it ?
if i try the command *MAKE* in the source directory , but it doesen't work ...
What is the command to run the compiler ?
Sorry for my english but i'm italian !
Posted: Mon Jul 09, 2007 4:33 am
by SamuraiX
I myself just installed Ubuntu (Sick of Cygwin!) to develop for PS2/PSP as well....
Since your question is some what vague... I'm going just to offer this suggestion:
Be sure that you export the proper environment variables prior to compilation for PS2/PSP. Read the included readme.txt from the toolchain as it will contain all the variables you need.
Here is a helpful tidbit for anyone who reads this....
1. Create a file and call it environ_ps2.sh
2. Within this file enter the following:
Code: Select all
export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
3. When ever you want to develop for PS2 just type the following prior to compiling you code:
4. This is assuming you are using bash as your shell....obviously.
P.S.
What distro are you using? I have to say that Ubuntu is really good! I find myself spending more time on it then Vista!
Posted: Mon Jul 09, 2007 5:19 am
by Avanaboy
thanks , I'm using ubuntu 7.04 !
Posted: Mon Jul 09, 2007 10:58 am
by SamuraiX
Well... since i work on many platforms for my engine I finished creating a little environment script that i use for building all my platforms with one command. Though I'm not finished as I work on Dreamcast and Gp2X this file should prove useful for those who work on PS2, PSP and linux.
Be sure not to use the quotes.
Usage from command line: "source environ.sh [value]"
Calling file from another fIle: ". environ.sh [value]"
value: 1=PSP, 2=PS2, 3=LINUX
Code: Select all
#!/bin/bash
# Environments for Specific Platforms
# environ.sh by SX ([email protected])
case $1 in
1) # PSP environment?
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
echo "PSP Environment Loaded!"
;;
2) # PS2 environment?
export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
echo "PS2 Environment Loaded!"
;;
3) # Linux environment?
export LNXDEV=/usr/bin
export PATH=$PATH:$LNXDEV
echo "Linux Environment Loaded!"
;;
*) # Wrong Value?
echo "Value Not Supported!"
echo "1 = PSP"
echo "2 = PS2"
echo "3 = Linux"
;;
esac