Pour la version francaise, cliquez sur le drapeau :

Day 1 : Installation and configuration of PSPSDK and Visual Studio C++

Ready to start PSP developpement in 30mn ? just follow my indications ;-)

1) First, installation of the pack (83Mo)

Download it here or here



Launch it, and choose the path (try to keep Cygwin at the root, the disk letter does’nt matters). At the end, you have to edit 2 file manualy, just follow the instructions.
Careful: don’t close the last ms-dos windows until she finish her job :



Warning : if you don’t have this, but a message like : Your group is currently “mkpasswd”, do it, that mean type :

mkpasswd -l > /etc/passwd

and

mkgroup -l > /etc/group



After, right click on My Computer, Property, Advanced, Environnement variables, click on the “Path” line then Modify.

devpsp5.jpg

Add to the list :

c:\cygwin\bin;c:\cygwin\usr\local\pspdev\bin;

(if cygwin is installed on C: of course, otherwise modify)



2) Installation of Visual C++ 2005 Express Edition Beta

It is installed automaticaly at the end of the installation, but you can download it yourself here, install it (all options by default). It will ask you a serial code at the end, you just have to register on the site with your msn account for receive a free one.

3) Configuration of this stuff

The 2 first step have to be done once. But from now, all of this will have to do at each new project.

Launch VS++ and start a new “Makefile project” (New, Project, General) After enter a name and do “next” (remember the path), do the same :

devpsp9.jpg

Now in your project folder, copy a main.c and a Makefile (take for example one of the sample at samples or Cygwin/Oslib/Samples) And copy the copy2psp.bat of the folder Cygwin and edit it to remplace XXX for everything you want (the name of the project for example) and the K for your PSP drive letter. You will have something like that :

@echo off
kxploit eboot.pbp test k:\psp\game > nul

Custom Firmwares : If you have a custom firmware, the kxploit of copy2psp.bat it’s not longer necessary, you only have to (like the 1.0 firmwares) copy the EBOOT.PBP directly in a folder in PSP/GAME, so your copy2psp.bat will have to look like that :

@echo off
copy eboot.pbp k:\psp\game\test > nul

(don’t forget to create the “test” folder)

devpsp10.jpg

In VS++, right click on source files, Add, Existing item, main.c Then right click on the name of the project in bold, Add, Existing item, show all files to choose Makefile

devpsp11.jpg

Add to the Makefile PSP_EBOOT_ICON = icon0.png (don’t forget to place a nice icon0.png in your project folder)

Voila, you just have to connect your PSP and compile with F7, you will have in the output windows :

devpsp12.jpg

Finally, on the PSP go to game and test.

If it works, congratulations, you’ve done !


Personal Tools