PS2 SDK on Linux !

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Avanaboy
Posts: 3
Joined: Sun Jul 08, 2007 5:09 am

PS2 SDK on Linux !

Post 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 !!!!
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

Post by radad »

Your question is too vague be more specific. What do you want to do with it? Maybe try the examples.
Avanaboy
Posts: 3
Joined: Sun Jul 08, 2007 5:09 am

Post 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 !
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post 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:

Code: Select all

source environ_ps2.sh
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!
Avanaboy
Posts: 3
Joined: Sun Jul 08, 2007 5:09 am

Post by Avanaboy »

thanks , I'm using ubuntu 7.04 !
SamuraiX
Posts: 76
Joined: Tue Jan 31, 2006 6:28 am
Location: USA
Contact:

Post 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
Post Reply