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 

hello developers

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



Joined: 20 Jun 2005
Posts: 82

PostPosted: Mon Jun 20, 2005 3:36 am    Post subject: hello developers Reply with quote

hey, i was wondering if someone who is able to write, compile, and run psp homebrew.. could do me and im sure others a favor

could someone write a FULL tutorial..on how to set up a psp editor to write the code..show an example "hello world" type program, with FULL comments explaining how to set up a psp program and everything..and then how to compile it, etc..

would be greatly appreciated..thanks.
Back to top
View user's profile Send private message
inomine



Joined: 05 May 2005
Posts: 53

PostPosted: Mon Jun 20, 2005 4:50 am    Post subject: Reply with quote

I was thinking of doing something like this once I have the thing figured out.

Also to be honest there is not much to figure out once, it's pretty straight forward C coding at the moment. Tutorials will only be of real use once the GP is figured out, or for some of the more esoteric pieces of hardware.
Back to top
View user's profile Send private message
asmodi



Joined: 07 Feb 2005
Posts: 52
Location: Göteborg/Oslo - Se/No

PostPosted: Mon Jun 20, 2005 4:59 am    Post subject: Reply with quote

The tutorial you ask for will get you as far as the tutorial goes. You need alot more base knowledge, and when you have that, you won't need a tutorial. This forum is all you need, as long you know how to use it.
_________________
It's not in my nature to be mysterious, but I can't talk about it, and I can't talk about why.
Back to top
View user's profile Send private message
senor coco



Joined: 05 May 2005
Posts: 5

PostPosted: Mon Jun 20, 2005 5:05 am    Post subject: Reply with quote

Actually a tutorial is possible and i am planning to create it once i can get the script to load. Remember c and c++ is mainly composed of libraries and if you could teach people the functions of the library kind of like people have created for Directx and opengl tutorial. I alway create a tutorial/journal when while i learn how to program with a certain library and i am planning to do so once i can get the script to install.

Everything in the script downloads but when it tries to install i get many error like the following:

no such file or directory
/psphome/psptoolchain/binutils-2.16.tar.gz not found in archive
/psphome/psptoolchain/gcc-4.0.0.tar.bz2 not found in archive
/psphome/psptoolchain/newlib-1.13.0.tar.gz not found in archive
cant cd binutils-2.16.tar.gz
cant cd gcc-4.0.0.tar.bz2
cant cd newlib-1.13.0.tar.gz
Back to top
View user's profile Send private message
sq377



Joined: 11 Apr 2005
Posts: 87

PostPosted: Mon Jun 20, 2005 5:39 am    Post subject: Reply with quote

if you use the ps2sdk, elf2pbp, and pspe, it is really easy to get it working. Try compiling nems hello world, it even has a readme. If you install the latest ps2sdk, you have to change a few of the directories in the mk.bat but thats really it.
Back to top
View user's profile Send private message AIM Address MSN Messenger
senor coco



Joined: 05 May 2005
Posts: 5

PostPosted: Mon Jun 20, 2005 5:41 am    Post subject: Reply with quote

is there a big difference between the ps2 sdk and the psp toolchain
Back to top
View user's profile Send private message
sq377



Joined: 11 Apr 2005
Posts: 87

PostPosted: Mon Jun 20, 2005 5:46 am    Post subject: Reply with quote

well, psp toolchain doesn't really have much specific for just the psp yet, so not much of a reason to use it. (correct me if im wrong.) Ps2sdk is what nem used for hello world, and I have used it without any problems.

But I'm still learning c, so I could be very wrong in advising the ps2sdk.
Back to top
View user's profile Send private message AIM Address MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Mon Jun 20, 2005 5:57 am    Post subject: Reply with quote

sq377 wrote:
well, psp toolchain doesn't really have much specific for just the psp yet, so not much of a reason to use it. (correct me if im wrong.) Ps2sdk is what nem used for hello world, and I have used it without any problems.

But I'm still learning c, so I could be very wrong in advising the ps2sdk.


Yes you're wrong. People should be using the PSP toolchain instead of the PS2 toolchain.
Back to top
View user's profile Send private message
senor coco



Joined: 05 May 2005
Posts: 5

PostPosted: Mon Jun 20, 2005 6:27 am    Post subject: Reply with quote

man i cant biuld it. I keep on getting errors. Id there any way i could download the files with out having to use the script. I am new to cygwin and i keep getting errors eveytime i try to install the script
Back to top
View user's profile Send private message
JJPeerless



Joined: 20 Jun 2005
Posts: 82

PostPosted: Mon Jun 20, 2005 7:31 am    Post subject: Reply with quote

well..its not really straight up C..you cant just be like printf("hello world");
save it to a .c and rename to eboot.pbp =)
Back to top
View user's profile Send private message
inomine



Joined: 05 May 2005
Posts: 53

PostPosted: Mon Jun 20, 2005 9:20 am    Post subject: Reply with quote

senor coco wrote:
man i cant biuld it. I keep on getting errors. Id there any way i could download the files with out having to use the script. I am new to cygwin and i keep getting errors eveytime i try to install the script


If you get errors with the script it means that there is something quite vitally missing in your Cygwin configuration so even if you did do everything manually it would not help in the slightest. And if you want to do everything manually just open up the script in a text editor and have a read as to what commands it executes, everything in there is plain for you to see.
Back to top
View user's profile Send private message
inomine



Joined: 05 May 2005
Posts: 53

PostPosted: Mon Jun 20, 2005 9:23 am    Post subject: Reply with quote

JJPeerless wrote:
well..its not really straight up C..you cant just be like printf("hello world");
save it to a .c and rename to eboot.pbp =)


How true, you would at least have to compile and link it first :P

There are few programs that use "straight" C, you always end up jumping through hoops and going about roundabout.
Back to top
View user's profile Send private message
JJPeerless



Joined: 20 Jun 2005
Posts: 82

PostPosted: Mon Jun 20, 2005 9:33 am    Post subject: Reply with quote

well..i really only know c++..didnt even realize regular old C wasnt OOP...weird.. im gonna start learning C..i mean i know all the basic's because most of it is the same as c++...but i think i need to learn more about pointers and messing with memory and stuff..

id still really like a tutorial on setting everything up..and some commented code or somethign

would be nice..id really like to port some of my java games over to psp =)
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