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 

PS2 SDK on Linux !

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



Joined: 08 Jul 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 5:16 am    Post subject: PS2 SDK on Linux ! Reply with quote

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



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Sun Jul 08, 2007 12:36 pm    Post subject: Reply with quote

Your question is too vague be more specific. What do you want to do with it? Maybe try the examples.
Back to top
View user's profile Send private message
Avanaboy



Joined: 08 Jul 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 7:18 pm    Post subject: Reply with quote

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



Joined: 31 Jan 2006
Posts: 76
Location: USA

PostPosted: Mon Jul 09, 2007 4:33 am    Post subject: Reply with quote

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:
  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:
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!
Back to top
View user's profile Send private message Visit poster's website
Avanaboy



Joined: 08 Jul 2007
Posts: 3

PostPosted: Mon Jul 09, 2007 5:19 am    Post subject: Reply with quote

thanks , I'm using ubuntu 7.04 !
Back to top
View user's profile Send private message
SamuraiX



Joined: 31 Jan 2006
Posts: 76
Location: USA

PostPosted: Mon Jul 09, 2007 10:58 am    Post subject: Reply with quote

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:

#!/bin/bash
# Environments for Specific Platforms
# environ.sh by SX (SumolX@gmail.com)

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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