Something to download
Devkitpsp: http://sourceforge.net/project/showfiles.php? Group_id = 114505 & package_id = 157350
Codeblocks: http://www.codeblocks.org/
1. Install devkitpsp and codeblocks. Assume that devkitpsp is installed in c: \ devkitpsp.
2. Open codeblocks.
3. Choose Settings> compiler and debugger.
4. Select Global compiler settings in the left-side pane, and set selected compiler to GNU gcc compiler.
5. Click copy.
6. In the dialog box that appears, enter devkitpsp.
7. Check that selected compiler is devkitpsp.
8. Select the search directories tab-> compiler tab, click clear, and add the following path:
C: \ devkitpsp \ include
C: \ devkitpsp \ PSP \ include
C: \ devkitpsp \ PSP \ SDK \ include
9. Select the search directories tab-> linker tab, click clear, and add the following path:
C: \ devkitpsp \ Lib
C: \ devkitpsp \ PSP \ Lib
C: \ devkitpsp \ PSP \ SDK \ Lib
10. Select the toolchain excuteble tab. The directory points:C: \ devkitpsp
11. Select the toolchain excuteble tab-> program files to modify the file location (C: \ devkitpsp \ bin ):
C compiler: psp-gcc.exe
C ++ Compiler: psp-g+cmd.exe
Linker for dynamic libs: psp-g+cmd.exe
Linker for static libs: psp-ar.exe
Debugger: <change to blank>
Resource compiler: <change to blank>
Make program: Find a usable make.exe
Click OK
12. Create an empty project. Select devkitpsp as the compiler.
13. Create a new C/C ++ file and add it to the project.
14. write code
15. Open the project-> properties-> targets tab. Uncheck:Auto-generate filename extension
16. Change output filename extension to. Elf, OK.
17. Open project> build options.
Select the linker Setting tab and enter:
-Lpspdebug-lpspdisplay-lpspge-lpspctrl-lpspsdk-lpsplibc-lpspnet_inet-lpspnet_apctl-lpspnet_resolver-lpsputility-lpspuser-lpspkernel-lstdc ++
OK
18,Build.
19. Save it as a template.
If the build fails, you can use your makefile.
Add an empty file to the project: The content is as follows:
Target = helloworld
Objs = helloworld. o
Build_prx = 1
Psp_fw_version = 371
# C compiler Parameters
Cflags =-O2-G0-wall
# C ++ compiler Parameters
Cxxflags = $ (cflags)-fno-exceptions-fno-rtti
# Compile compiler Parameters
Asflags = $ (cflags)
# Reference Library-l stdc ++
Libs =-lstdc ++
Extra_targets = eboot. pbp
Psp_eboot_title = Hello World
Pspsdk = C :\\ devkitpsp \ PSP \ SDK # Here is the installation path and you can adjust s
Include $ (pspsdk)/lib/build. Mak
In Project-> properties, select this is a custom makefile from the project Setting tab,
Make sure that the MAKEFILE file name is the same as the name entered here.
Delete the last $ file in complie single file on the make commands tab in project-> build options.
In the project management view, right-click the file and choose built file.
If built all fails on the project.
On psp 5.03 GEN-C