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 

Compiling PSPSDK on PS3 Linux and creating PSP and PS3 games

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



Joined: 09 Apr 2005
Posts: 111

PostPosted: Sat Dec 23, 2006 9:52 pm    Post subject: Compiling PSPSDK on PS3 Linux and creating PSP and PS3 games Reply with quote

How many people here are programming the psp via a ps3?

How do you compile the PSPSDK on a PS3 running linux?
Previously you just run the shell script to download and compile the
pspsdk via Cygwin on a PC, but if you are doing it on a PS3 running
linux, how do you go about doing this? Is there a step by step
procedure? Since there is an easy installation guide for the
GENTOO linux maybe there is a guide for installing the PSPSDK on this
platform also.

Secondly since one of the SPE on the ps3 runs the ps3 os, is this
the so called hypervisor that provides security? Is this what is
blocking access to the GPU natively?

Also, when is there going to be a PS3SDK? One that provides easy
libraries for getting the sixaxis input, outputting via the GPU (if possible)
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Dec 24, 2006 5:14 am    Post subject: Re: Compiling PSPSDK on PS3 Linux and creating PSP and PS3 g Reply with quote

edepot wrote:
How many people here are programming the psp via a ps3?


I've thought about this, because it will be faster than the Cygwin environment on my Windows PC :-)

edepot wrote:

Also, when is there going to be a PS3SDK? One that provides easy
libraries for getting the sixaxis input, outputting via the GPU (if possible)


I don't think something like a full PS3SDK is necessary. Sound works already with the Linux defacto audio standard ALSA. But you are right, things like the controller support could be added to the PS3 respository at http://svn.ps2dev.org/ and maybe later it will be merged to the Linux code base itself, because then every computer with Linux and USB can use Sonys controller.
Back to top
View user's profile Send private message
edepot



Joined: 09 Apr 2005
Posts: 111

PostPosted: Sun Dec 24, 2006 7:02 am    Post subject: ps3sdk and pspsdk on ps3 Reply with quote

Would it actually work? Can the pspsdk actually compile on PS3 linux?
Given that the subversion pspsdk contains sources on patches to the regular GNU sources for C and other libraries so that they can compile code and output PSP compatible binaries. And given that GNU C and
other libraries can compile on any supported processor (be it
x86, powerpc, etc). Does the subversion pspsdk actually patch the
regular GNU C and other libraries such that they work on ALL supported
CPU's so that the resultant compiler can output PSP binaries? Or are the
patches specific to a linux environment running on x86? If the patches
actually work on all CPU's then regular GNU C and other libraries must
currently work on CELL CPU's so that pspsdk can patch it to work on
the CELL right? Perhaps the regular GNU C already works on the single
PowerPC module on the CELL and the SPE's can be isolated. If so
does this mean people can actually compile the PSPSDK nowadays
on non x86 machines? (like maybe a mac powerpc running linux or
on a sparcstation running linux). If yes, then I think it should be no
problem running the pspsdk on a ps3 linux.
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Sun Dec 24, 2006 9:01 am    Post subject: Reply with quote

Quote:
If so
does this mean people can actually compile the PSPSDK nowadays
on non x86 machines? (like maybe a mac powerpc running linux or
on a sparcstation running linux).


yes
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Sun Dec 24, 2006 4:59 pm    Post subject: Reply with quote

IIRC adrahil has the pspsdk set up on a PS2 ;-)
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Dec 24, 2006 5:14 pm    Post subject: Reply with quote

danzel wrote:
IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Thu Dec 28, 2006 2:16 am    Post subject: Reply with quote

I've installed it on my PS3 and it works. Just checkout psptoolchain from SVN, compile it with toolchain.sh and add this to your /etc/profile:

Code:

export PSPDEV=/usr/local/pspdev
export PSPSDK=/usr/local/pspdev/psp
export PATH=$PATH:/usr/local/pspdev/bin


Now you can test it with "cd /usr/local/pspdev/psp/sdk/samples/gu/cube ; make" and you should get an EBOOT.PBP.
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Sat Dec 30, 2006 11:05 am    Post subject: Reply with quote

adrahil wrote:
danzel wrote:
IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
I'm not entirely sure whether I should be impressed or horrified.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sat Dec 30, 2006 7:02 pm    Post subject: Reply with quote

FreePlay wrote:
adrahil wrote:
danzel wrote:
IIRC adrahil has the pspsdk set up on a PS2 ;-)
Yup :) Compiled nice and cleanly :P Even psplink works, up to some extent ^^
I'm not entirely sure whether I should be impressed or horrified.

Horrified :3
Nah, it is just surprising to see a clean compilation (just some warnings with vsnprintf stuff) on such an exotic system (RHEL-derivative with 2.2.1 kernel and old libc...)
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sat Dec 30, 2006 9:11 pm    Post subject: Reply with quote

a little bit off topic :

is gcc on PS3 able to compile programs for SPE and not only for CPU ?
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Dec 31, 2006 2:46 am    Post subject: Reply with quote

hlide wrote:

is gcc on PS3 able to compile programs for SPE and not only for CPU ?


Yes, you can compile for SPE (at least with my Gentoo installation).
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