Also from the Dash Hacks Network:   ps3-hacks.com   xbox360-hacks.com   nes-hacks.com   iphone-hacks.com   ipod-hacks.net   dashhacks.com

PSP-Hacks.com

Hack your Sony PSP

Forums | Tutorials | Homebrew | Custom Firmwares | Search

PSP Programming Tutorials

greg | August 5, 2005

source: pspupdates

Yeldarb has created two terrific tutorials for folks who wish to begin PSP homebrew development.

These guides are aimed at complete newbies, but would still be helpful to novice coders who are looking to enter the PSP scene. The first tutorial is a lesson on setting up the development environment – setting up the toolchain and PSPSDK with CYGWIN (windows). The second one is a tutorial for creating your first program – a walkthrough of the setup, creation and execution of a simple “Hello World� application on PSP.

Lesson 01 - Setting up the Development Environment
Lesson 02 - Creating Your First Program

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Reddit
  • YahooMyWeb
  • Technorati
  • Slashdot
  • Digg


RSS feed | Trackback URI

37 Comments »

Comment by Gary13579
2005-08-05 12:03:27

Too bad it uses CYGWIN.
A REAL n00b would not be able to work in that enviroment ;)

If the maker of this tut reads this, you might want to add one on how to compile stuff under the Windows PSPSDK/ToolChain using a DOS box..

 
Comment by solargame
2005-08-05 13:45:28

mine CYGWIN is still installing, it started at 10:00 this morning.

 
Comment by Gary13579
2005-08-05 17:21:47

Yes, that is another huge disadvantage of CYGWIN.
To compile the psptoolchain and everything takes forever..

 
Comment by solargame
2005-08-05 17:52:04

can someone help me i keep getting an error messeage, when i try to compile the make file and the main.c it keeps saying it expected a “,” or a “;” before “=” token or something like that, WHAT DO I DO!!!

 
Comment by bigred85
2005-08-05 23:25:31

well, guess i’ll hafta brush up on my linux if this be the case

 
Comment by guestservice
2005-08-06 00:27:43

#5… is there an english translation to your message?

 
Comment by avardar
2005-08-06 09:01:11

Can anyone know where can I get the pspToolchain-20050725?
I checked the website that the author linked to article but in it there is the 20050801 version

 
Comment by avardar
2005-08-06 09:26:11

K i found it from google cahce, However there is nothing such as toolchain.sh in the tar content..there is only one file named psptoolchain-20050725 and if I open it with wordpad and apply the replaces and rename it to toolchain.sh it still doesnt work

 
Comment by avardar
2005-08-06 09:35:30

it says “cannot execute binary file”

 
Comment by Fluff
2005-08-06 11:24:45

Thanks alot for the tutorial. Directions are perfect, very easy to follow. Can’t wait for future commands to make this a bit more interesting =)

 
Comment by michaeljb
2005-08-06 14:07:38

hi, i get the following error

./toolchain.sh: line 242: ./bootstrap: No such file or diectory
ERROR RUNNING PSPSDK BOOTSTRAP

does anyone know how to solve this?

 
Comment by Aaron
2005-08-06 14:37:31

I followed everything in the tutorials perfect…but my computer security is so strong it wont open the command line to find folders once im in CYGWIN!???

 
Comment by Raider X
2005-08-06 15:21:56

These are pretty good, but still u need to learn coding languages first, and by the time u learn tyhe languages, either, homebrew for PSP will be given up on, or u will already have learned enough to teach urself how to code an ELF file and then convert it into a PBP.

 
Comment by TurbodTalon
2005-08-06 16:25:05

I am very interested in learning how to do this, but I am running into the same problems that a few of the other guys here are. I have the same two problems as post #8 and post #9.

 
Comment by Fetty
2005-08-06 16:41:34

@8 and @14 open the psptoolchain-20050725 with winrar lol its an archive too but you should use the most uptodate toolchain

 
Comment by avardar
2005-08-06 17:26:53

#15 oh really? read #8 once more…

 
Comment by michaeljb
2005-08-06 20:22:29

does anyone know how to solve the problem from #11 everything works fine for about 2 hours then all of a sudden that error just pops up. The only thing i think it can be related to is the fact that im using a newer psptoolchain than the one in the tutorial because i cant find that one (the psptoolchain still cames from the same site as the one in the tutorial tho)

 
Comment by Kurcz
2005-08-06 21:59:00

I havn’t got a chance to look at it, but is this programming C or C++?

 
Comment by TurbodTalon
2005-08-06 23:46:05

As odd as it sounds, #15 is right. It is indeed another archive, but you have to manually tell the computer to open it with WINRAR. Did I do something wrong, or should that have been included in the instructions? Anyway, thanks for the help. Hopefully I don’t run into that error the other guys are talking about in #17.

 
Comment by luv my psp
2005-08-07 09:20:49

“run a CYGWIN bash shell (cygwin.bat). This will open up a command line. Once you see “yourusername@yourcomputername ~” you may close the window;”

wth does he mean? :S

 
Comment by TurbodTalon
2005-08-07 10:24:29

When it’s time to make my project, I get several errors that say the same thing. I realize that they are somewhat self-explanatory, but is it possible to get an error explanation? Also, how did I get so many errors when I cut/pasted the entire project?

 
Comment by curk
2005-08-07 10:55:06

right, so i followed the instructions. and ive got my “main.c” and “Makefile” in projects/helloworld. when i enter “make”, i get; “make:*** No rule to make ‘main.ocd’ , needed by ‘hello.elf’. Stop.

 
Comment by avardar
2005-08-07 13:16:32

nice work by Yeldarb, looking forward to lesson3, especially for the psp specific functions for button listening etc purposes..

 
Comment by Jeff
2005-08-07 14:22:45

I keep getting the error “expected constructor, destructor, or type conversion before” “‘=’ token” Anyone know how to fix this?

 
Comment by omlette
2005-08-07 14:46:50

If anyone is coming up with an error on compile, try changing “OBJS = main.o” to “OBJS = main.c”. For some reason, both of these seem to be working for me now, but initially only main.c worked.

 
Comment by omlette
2005-08-07 14:52:38

#21: Open the cygwin.bat file, it will be wherever you installed cygwin. Once it’s loaded, you can close the window and continue.

 
Comment by Michaeljb
2005-08-08 08:52:18

Anyone else experienced the error from #11 it occurs about 2hours into the script execution.

 
Comment by Justin
2005-08-11 08:23:55

haha thanks a ton, #19 was right, I didnt even realize it was another archive lol! thank you I was stuck on this all night =D

 
Comment by guestservice
2005-08-17 17:30:44

i received the same error as #11. has anyone fixed this yet?

 
Comment by somerandomguest
2005-08-18 15:29:00

when I execute the CYGWIN bash shell, it just sits there. Am I doing something wrong, becuase I downloaded all the required moudules, and installed them. Does it just take a while to setup, or what?

 
Comment by Shav
2005-08-20 15:49:03

When I replace “gmake” with “make” and “gpatch” with “patch” then run ./toolchain.sh I get ERROR: please make sure you have GNU ‘make’ instaled. What does this mean and how do i fix it?

 
Comment by Shav
2005-08-20 15:50:57

Addition from my previous post: it comes from lines 73 and 76 and also where can i find psptoolchain 20050725?

 
Comment by jamarcus
2005-08-21 21:46:03

I can’t make a “makefile”. How do i make a text document and save it without an extension? (i.e. .txt etc…)

 
Comment by pspnerdnick25
2005-08-24 21:11:42

hey, i get the same problem as the guy who made #32. Can u pleeeeeeease help me, i did exaclty wat i thought it meant. can u please explain the “gmake” with “make” thing to us because even though that didnt work, i continued on all the way through the tutorial and it would have worked if that part would’ve worked. so can u please help us yeldarb. if the guy who made #32 wants to talk or if yeldarb, u want to explain it to me then
AOL IM:wrestlerginick1
E-mail:pspnerdnick25@yahoo.com

 
Comment by deaner92@yahoo.com
2005-10-17 14:59:57

can some one help me… it has an error and it says theres no make file when i try to make

 
Comment by admin
2005-10-28 19:49:41

hey when i try to make the helloworld it say “no target specified and no make file found stop” wot should i do???

 
Comment by 0cool
2005-11-05 17:03:10

please help i typed ls it didnt come up with nything except for another entry bar

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)




Affiliates

Video Games

Join the Facebook Fan Club





PSP Hacks Archives